---
title: "dompurify 3.5.0: release notes, upgrades and advisories"
description: "dompurify 3.5.0: release notes, breaking changes by major version and 33 known advisories with their fix."
url: https://inlinr.com/packages/dompurify
lang: en
---

[Packages](https://inlinr.com/packages)

# dompurify

3.5.0 · 22 Nov 2026 (MPL-2.0 OR Apache-2.0) 106.1M / week [Repository](https://github.com/cure53/DOMPurify) [npm](https://www.npmjs.com/package/dompurify) [Atom feed](https://inlinr.com/packages/feed/dompurify)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/dompurify/upgrade)

LineNewestSecurity

- 3.x 3.5.0 Safe from 3.4.17 Latest line
- 2.x 2.5.9 19 open advisories, worst moderate [To 3.5.0](https://inlinr.com/packages/dompurify/upgrade/2.5.9-3.5.0)
- 1.x and older 1.1.1 150 open advisories, worst critical  · last release Dec 2017, no longer updated [To 3.5.0](https://inlinr.com/packages/dompurify/upgrade/1.1.1-3.5.0)

## Latest releases

[All 158 releases](https://inlinr.com/packages/dompurify/releases)

1. ### [3.5.0](https://inlinr.com/packages/dompurify/releases/3.5.0 "Open this release") [](https://github.com/cure53/DOMPurify/releases/tag/3.5.0 "Read this release where it was published")  
22 Nov 2026

  - Fixed a further `SAFE_FOR_TEMPLATES` bypass where nested tags could reassemble expressions on reparse, thanks [@e1abrador](https://github.com/e1abrador)
  - Fixed several ways for DOM-built input to get a template expression past `SAFE_FOR_TEMPLATES`: entity-encoded text in a `style` element nested in a `textarea` or `title`, text hidden in the children of a void element, NUL characters splitting a marker, and comments that end early on reparse
  - Fixed several gaps in the `IN_PLACE` fail-closed handling: a rejected root is now neutralized inside its open shadow roots, a failed call no longer leaves text or comments in the root, and a removed node that a hook or custom element puts back is sanitized again
2. ### [3.4.18](https://inlinr.com/packages/dompurify/releases/3.4.18 "Open this release") [](https://github.com/cure53/DOMPurify/releases/tag/3.4.18 "Read this release where it was published")  
14 Nov 2026  
Summary · from the note as AI read it  
Upgrade: this release fixes a security issue.

  - Removed  
  Removed several entries from the SVG tag allow-list that are attributes and not elements, thanks [@hackvertor](https://github.com/hackvertor)
3. ### [3.4.17](https://inlinr.com/packages/dompurify/releases/3.4.17 "Open this release") [](https://github.com/cure53/DOMPurify/releases/tag/3.4.17 "Read this release where it was published")  
12 Oct 2026

  - Fixed an issue with `IN_PLACE`, `SAFE_FOR_TEMPLATES` and shadow roots, thanks [@manus-pi](https://github.com/manus-pi)
  - Fixed `IN_PLACE` handling of nodes that hooks or custom elements tough during sanitization, thanks [@uttej-badwane](https://github.com/uttej-badwane)
  - Fixed the SMIL `attributeName` guard in XHTML mode, thanks [@Koukyosyumei](https://github.com/Koukyosyumei)

Dependency tracking

## Know when your own dependencies move

dompurify had 25 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

[All 33](https://inlinr.com/packages/dompurify/security)

- [DOMPurify vulnerable to tampering by prototype polution](https://inlinr.com/advisories/GHSA-p3vf-v8qc-cwcr) Critical · fixed in 2.4.2
- [Cross-Site Scripting in dompurify](https://inlinr.com/advisories/GHSA-mjjq-c88q-qhr6) Critical · fixed in 2.0.7
- [DOMPurify XSS via selectedcontent re-clone](https://inlinr.com/advisories/GHSA-87xg-pxx2-7hvx) High · fixed in 3.4.5

## Health

[Details](https://inlinr.com/packages/dompurify/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Registry facts last checked 24 Nov 2026\. Releases and advisories last read 24 Nov 2026.

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
