Packages

dompurify

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

Upgrading dompurify From 0.4.4 to 0.9.0

25 releases in betweennotes for 24

Other targets from 0.4.4Clears its 25 advisories3.4.17Latest3.5.0
  1. 0.4.4yours
  2. 1 release
  3. 0.6.0major
  4. 6 releases
  5. 0.6.7security
  6. 0.7.0major
  7. 4 releases
  8. 0.8.0major
  9. 0.8.1security
  10. 4 releases
  11. 0.8.6security
  12. 2 releases
  13. 0.8.9security
  14. 0.9.0target
1+
change to make
0
advisories fixed
39+
new
23+
fixes

Counted from 24 of 25 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking0.6.1

Security

25 advisories still affect 0.9.0

Upgrading to 3.4.17 clears them.

  • Fixed and worked around newly discovered variations of the Safari 10.1 - 10.2 XSS

    0.9.0
  • Fixed another aspect of the Safari XSS

    0.8.9
  • Fixed an XSS in Safari 10.1 and 10.2 introduced by a Safari browser bug

    0.8.6
  • Added more tests to cover the security fix

    0.8.1
  • Fixed a possible security issue based on a newly spotted Firefox bug (explanation below)

    0.6.7
  • The security issue is caused by a non-standard behavior of Gecko (the Firefox browser-engine) and a peculiar way of working with innerHTML-assignments.

    0.6.7

Release by release

  1. 0.9.0

    Security fix18 May 20172 new · 1 fix
    • Security

      Fixed and worked around newly discovered variations of the Safari 10.1 - 10.2 XSS

    • New

      Added feature test to spot additionally broken versions if necessary

    • New

      Added a configuration flag to use persistent configuration

    • Fixed

      Fixed unsafe document generation for Safari 10.1 and 10.2

  2. 0.8.9

    Security fix3 May 20171 new
    • Security

      Fixed another aspect of the Safari XSS

    • New

      Added better checks for old Firefox mXSS

  3. 0.8.8no release note

  4. 0.8.7

    25 Apr 20172 new
    • New

      Added test for Firefox mXSS issue

    • New

      Added more browsers to the test array

  5. 0.8.6

    Security fix21 Apr 20172 new · 3 fixes
    • Security

      Fixed an XSS in Safari 10.1 and 10.2 introduced by a Safari browser bug

    • New

      Added new flag FORCE_BODY to enable better handling of HTML starting with style and other elements a browser might move into the header (see #199)

    • New

      Added white-listing for ARIA attributes (see #203)

    • Fixed

      Fixed a minor return value problem on MSIE11 (see #198)

    • Fixed

      Fixed a minor bug in the URI white-list regex (see #200)

    • Fixed

      Fixed a bug where data URI attributes would be removed from SVG content (see #205)

  6. 0.8.5

    7 Feb 20171 new · 2 fixes
    • New

      Added more test coverage

    • Fixed

      Fixed a small problem with empty DOM fragments on MSIE11

    • Fixed

      Fixed removal of data: URIs in img-src when having whitespaces

  7. 0.8.3 – 0.8.42 releases, nothing new or fixed in the notes

  8. 0.8.2

    9 Jun 20161 new · 1 fix
    • New

      Added more test cases

    • Fixed

      Fixed a bug with the handling of binary attributes

36 other lines we could not sort, mostly version bumps
  • Cleaned up after Safari emergency fix

    0.8.7
  • General code and comment clean-up

    0.8.7
  • Allowed users to pass DOM nodes for sanitization

    0.8.5
  • Made the uponSanitizeElement and uponSanitizeAttribute hooks more powerful (see #184)

    0.8.4
  • Updated MentalJS sandbox in the demo folder

    0.8.4
  • Reduced the NPM package footprint

    0.8.3
  • Enhanced support for Data URIs

    0.8.0
  • Enhanced support for Node.js and jsdom

    0.8.0
  • Enhanced tests and reduced useless output

    0.8.0
  • Updated documentation and credits

    0.8.0

2 internal lines (docs, tests, tooling) left out.

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.