Packages

dompurify

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

Your version

3.4.17

12 Oct 2026Where it was published

3.5.0 is the newest release of 3.x.

In short

1 new3 fixed3 changed

Security

Release note

  • Fixed an issue with IN_PLACE, SAFE_FOR_TEMPLATES and shadow roots, thanks @manus-pi

  • Fixed IN_PLACE handling of nodes that hooks or custom elements tough during sanitization, thanks @uttej-badwane

  • Fixed the SMIL attributeName guard in XHTML mode, thanks @Koukyosyumei

  • Hardened several smaller edge cases (namespaces, literal-text elements, isValidAttribute()), thanks @artiphishell

  • Added a purify-edge test runner as a compatibility check, thanks @anzal1

  • Clarified the IN_PLACE documentation in the README about possible risks

  • Updated several dependencies

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.