OsVault/npm/dompurify
npm

dompurify

25 known vulnerabilities · 0 critical · 1 high

CVE-2026-0540

DOMPurify contains a Cross-site Scripting vulnerability

Published Mar 3, 2026
CVE-2019-16728MEDIUM

Cross-Site Scripting in dompurify

Published Aug 28, 2020
CVE-2020-26870MEDIUM

Cross-site Scripting in dompurify

Published Dec 18, 2020
CVE-2019-25155MEDIUM

DOMPurify Open Redirect vulnerability

Published Nov 14, 2023
GHSA-cj63-jhhr-wcxv

DOMPurify USE_PROFILES prototype pollution allows event handlers

Published Apr 3, 2026
GHSA-39q2-94rc-95cp

DOMPurify's ADD_TAGS function form bypasses FORBID_TAGS due to short-circuit evaluation

Published Apr 16, 2026
CVE-2024-45801HIGH

DOMPurify allows tampering by prototype pollution

Published Sep 16, 2024
GHSA-h8r8-wccr-v5f2

DOMPurify is vulnerable to mutation-XSS via Re-Contextualization

Published Mar 27, 2026
CVE-2025-26791

DOMPurify allows Cross-site Scripting (XSS)

Published Feb 14, 2025
CVE-2025-15599

DOMPurify contains a Cross-site Scripting vulnerability

Published Mar 3, 2026
GHSA-76mc-f452-cxcm

DOMPurify: Hook mutation of `data.allowedTags` / `data.allowedAttributes` permanently pollutes `DEFAULT_ALLOWED_TAGS` / `DEFAULT_ALLOWED_ATTR`

Published Jun 15, 2026
GHSA-gvmj-g25r-r7wr

DOMPurify: SAFE_FOR_TEMPLATES bypass - template expressions survive sanitization inside <template> content when using DOM output modes

Published Jun 15, 2026
GHSA-hpcv-96wg-7vj8

DOMPurify: Cross-realm IN_PLACE sanitization leaves executable markup intact via realm-bound `instanceof` checks

Published Jun 15, 2026
GHSA-r47g-fvhr-h676

DOMPurify: IN_PLACE mode preserves attributes of a clobbered root element, allowing XSS via attacker-controlled root DOM

Published Jun 15, 2026
GHSA-rp9w-3fw7-7cwq

DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content

Published Jun 15, 2026
GHSA-vxr8-fq34-vvx9

DOMPurify: Trusted Types policy survives `clearConfig()` and can poison later `RETURN_TRUSTED_TYPE` output

Published Jun 15, 2026
GHSA-x4vx-rjvf-j5p4

DOMPurify: `IN_PLACE` mode trusts attacker-controlled `nodeName` on live non-form nodes, allowing script retention and XSS via attacker-supplied DOM objects

Published Jun 15, 2026
GHSA-crv5-9vww-q3g8

DOMPurify has a SAFE_FOR_TEMPLATES bypass in RETURN_DOM mode

Published Apr 22, 2026
CVE-2024-47875

DOMpurify has a nesting-based mXSS

Published Oct 11, 2024
GHSA-87xg-pxx2-7hvx

DOMPurify XSS via selectedcontent re-clone

Published Jun 1, 2026
GHSA-cjmm-f4jc-qw8r

DOMPurify ADD_ATTR predicate skips URI validation

Published Apr 3, 2026
GHSA-h7mw-gpvr-xq4m

DOMPurify: FORBID_TAGS bypassed by function-based ADD_TAGS predicate (asymmetry with FORBID_ATTR fix)

Published Apr 22, 2026
GHSA-v9jr-rg53-9pgp

DOMPurify: Prototype Pollution to XSS Bypass via CUSTOM_ELEMENT_HANDLING Fallback

Published Apr 22, 2026
GHSA-cmwh-pvxp-8882

DOMPurify: Permanent `ALLOWED_ATTR` pollution via `setConfig()` bypassing the hook clone-guard (incomplete fix of the 3.4.7 hook-pollution patch)

Published Jun 18, 2026
MAL-2024-9052

Malicious code in express-dompurify (npm)

Published Oct 1, 2024
Check your entire dependency tree at onceRun dependency scan →