Skip to content

Commit d91ad60

Browse files
authored
Add notes on security
1 parent e75b8ba commit d91ad60

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ A comment marker.
9191
values to numbers and booleans when possible
9292
* `node` ([`Node`][node]) — Reference to given node
9393

94+
## Security
95+
96+
Use of `mdast-comment-marker` does not involve [**hast**][hast], user content,
97+
or change the tree, so there are no openings for
98+
[cross-site scripting (XSS)][xss] attacks.
99+
94100
## Contribute
95101

96102
See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
@@ -150,3 +156,7 @@ abide by its terms.
150156
[node]: https://github.com/syntax-tree/unist#node
151157

152158
[marker]: #marker
159+
160+
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
161+
162+
[hast]: https://github.com/syntax-tree/hast

0 commit comments

Comments
 (0)