Packages

dompurify

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

Your version

0.8.6

21 Apr 2017Where it was published

0.9.0 is the newest release of 0.8.x.

In short

1 security2 new3 fixed

  • Security

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

Security

25 advisories affect 0.8.6; 3.4.17 fixes them

20 more

Release note

  • Security

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

    • On Safari 10.1 and 10.2, this now actually causes XSS. Good job, Safari. Not.

    • new DOMParser().parseFromString('<svg onload=alert(document.domain)>', 'text/html');

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

  • 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)

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

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

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

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.