Skip to content

Commit 807e86d

Browse files
committed
Add notes on security
1 parent e58110a commit 807e86d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ The verbose info would looks as follows:
134134
}
135135
```
136136

137+
## Security
138+
139+
Use of `hast-util-from-parse5` can open you up to a
140+
[cross-site scripting (XSS)][xss] attack if Parse5’s AST is unsafe.
141+
137142
## Contribute
138143

139144
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -203,3 +208,5 @@ abide by its terms.
203208
[hast]: https://github.com/syntax-tree/hast
204209

205210
[node]: https://github.com/syntax-tree/hast#nodes
211+
212+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 commit comments

Comments
 (0)