Packages

dompurify

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

Your version

3.2.7

17 Sep 2025Where it was published

3.5.0 is the newest release of 3.x.

In short

3 new4 changed

Security

Fixes 1 advisory that affected 3.2.6

21 advisories affect 3.2.7; 3.4.17 fixes them

16 more

Release note

  • Added new attributes and elements to default allow-list, thanks @elrion018

  • Added tagName parameter to custom element attributeNameCheck, thanks @nelstrom

  • Added better check for animated href attributes, thanks @llamakko

  • Updated and improved the bundled types, thanks @ssi02014

  • Updated several tests to better align with new browser encoding behaviors

  • Improved the handling of potentially risky content inside CDATA elements, thanks @securityMB & @terjanq

  • Improved the regular expression for raw-text elements to cover textareas, thanks @securityMB & @terjanq

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.