CVE-2026-49978
Description
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This issue is fixed in version 3.4.7.
Severity
MEDIUM
CVSS v3
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source nvd
CVSS v4
6.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N · source cna
Exploit chance (EPSS)
0.404%
chance of exploitation in the next 30 days
higher than 35.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-07-21 |
Timeline
- 2026-06-15GitHub advisory published (GHSA-rp9w-3fw7-7cwq)29 days before publication
- 2026-07-14Published by the CNA20:02 UTC
- 2026-07-21CISA SSVC decision recorded7 days after publication
Exploit and advisory records
GitHub advisory GHSA-rp9w-3fw7-7cwq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm dompurify | before 3.4.7 | 3.4.7 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| cure53 dompurify | before 3.4.7fixed in 3.4.7 | 3.4.7 |
References
- https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-rp9w-3fw7-7cwq
- https://github.com/cure53/DOMPurify/releases/tag/3.4.7
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-49978'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-49978'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-49978'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-49978'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).