Packages

dompurify

3.5.0 · 22 Nov 2026(MPL-2.0 OR Apache-2.0)106.1M / weekRepositorynpmAtom feed

Your version

2.2.0

21 Oct 2020Where it was published

2.5.9 is the newest release of 2.x.

In short

2 security1 fixed1 changed

  • Security

    Fix a possible XSS in Chrome that is hidden behind #enable-experimental-web-platform-features, reported

  • Security

    Changed RETURN_DOM_IMPORT default to true to address said possible XSS

Security

22 advisories affect 2.2.0; 3.4.17 fixes them

17 more

Release note

  • Security

    Fix a possible XSS in Chrome that is hidden behind #enable-experimental-web-platform-features, reported

  • Security

    Changed RETURN_DOM_IMPORT default to true to address said possible XSS

  • Updated README to reflect the new change and inform about the risks of manually setting RETURN_DOM_IMPORT back to false

  • Fixed the tests to properly address the new default

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.