Skip to content

Commit

Permalink
Add notes on security
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 24, 2019
1 parent fa0457b commit 3d726a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ For example, the following node:
<i class="foo">bar</i>
```

## Security

Use of `remark-html` is *unsafe* by default and opens you up to a
[cross-site scripting (XSS)][xss] attack.
Pass `sanitize: true` to prevent attacks.
Settings `sanitize` to anything else may be unsafe.

## Contribute

See [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways
Expand Down Expand Up @@ -256,3 +263,5 @@ abide by its terms.
[commonmark]: https://commonmark.org

[integrations]: #integrations

[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting

0 comments on commit 3d726a4

Please sign in to comment.