Packages

dompurify

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

Your version

3.4.0

14 Apr 2026Where it was published

3.5.0 is the newest release of 3.x.

In short

2 security1 new9 fixed1 changed1 internal

Security

Fixes 4 advisories that affected 3.3.3

13 advisories affect 3.4.0; 3.4.17 fixes them

8 more

Release note

Most relevant changes:

  • Fixed a problem with FORBID_TAGS not winning over ADD_TAGS, thanks @kodareef5

  • Fixed ADD_ATTR/ADD_TAGS function leaking into subsequent array-based calls, thanks @1Jesper1

  • Fixed a missing SAFE_FOR_TEMPLATES scrub in RETURN_DOM path, thanks @bencalif

  • Security

    Fixed a prototype pollution via CUSTOM_ELEMENT_HANDLING, thanks @trace37labs

  • Fixed an issue with ADD_TAGS function form bypassing FORBID_TAGS, thanks @eddieran

  • Fixed an issue with ADD_ATTR predicates skipping URI validation, thanks @christos-eth

  • Security

    Fixed an issue with USE_PROFILES prototype pollution, thanks @christos-eth

  • Fixed an issue leading to possible mXSS via Re-Contextualization, thanks @researchatfluidattacks and others

  • Fixed an issue with closing tags leading to possible mXSS, thanks @frevadiscor

  • Fixed a problem with the type dentition patcher after Node version bump

  • Fixed freezing BS runs by reducing the tested browsers array

  • Bumped several dependencies where possible

  • Added needed files for OpenSSF scorecard checks

Published Advisories are here:
github.com/cure53/DOMPurify/security/advisories

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.