Skip to content

Commit

Permalink
Update SECURITY.md
Browse files Browse the repository at this point in the history
  • Loading branch information
martincizek authored Jun 15, 2021
1 parent 2d68b76 commit ef41a54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ When a string input is passed, the DOM parser is picked as follows.

Please note that a malicious string input can cause undesired effects within the DOM parser
even before Turndown code starts processing the document itself.
These effects especially include downloading external resources and eventual script execution.
These effects especially include script execution and downloading external resources.

For critical applications with untrusted inputs, you should consider either cleaning up
the input with a dedicated HTML sanitizer library or using an alternate DOM parser that
Expand All @@ -28,8 +28,8 @@ better suits your security needs.
In particular, Turndown version 6 and below used [jsdom](https://github.com/jsdom/jsdom) as the
standalone DOM parser. As `jsdom` is a fully featured DOM parser with script execution support,
it imposes an inherent security risk. We recommend upgrading to version 7, which uses
[domino](https://github.com/fgnass/domino) that doesn't execute scripts nor does it download
external resources.
[domino](https://github.com/fgnass/domino) that doesn't even support executing scripts nor
downloading external resources.

## Reporting a Vulnerability

Expand Down

0 comments on commit ef41a54

Please sign in to comment.