Packages

dompurify

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

Your version

3.4.4

17 May 2026Where it was published

3.5.0 is the newest release of 3.x.

npm marks 3.4.4 as deprecated: Fixed a security issue introduced in 3.4.4

In short

4 new3 changed

Security

15 advisories affect 3.4.4; 3.4.17 fixes them

10 more

Release note

  • Added the selectedcontent element to default allow-list, thanks @lukewarlow

  • Added the command and commandfor attributes to default allowed-list, thanks @lukewarlow

  • Added better template scrubbing for IN_PLACE operations, thanks @DEMON1A

  • Added stronger checks for cross-realm windows, thanks @DEMON1A & @fg0x0

  • Updated demo website and made sure it uses the latest from main

  • Updated existing workflows, fuzzer, dependabot, etc., added more tests

  • Bumped several dependencies where possible

🚨 This release had been flagged as deprecated, please use DOMPurify 3.4.5 instead 🚨

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.