CVE-2026-49978: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
DOMPurify versions prior to 3.4.7 contain a cross-site scripting (XSS) vulnerability where the IN_PLACE sanitization method can skip shadow DOM contents inside <template>.content. This allows attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to persist and execute when sanitized templates are cloned and inserted. The issue is fixed in version 3.4.7.
AI Analysis
Technical Summary
DOMPurify is a sanitizer for HTML, MathML, and SVG that prevents XSS attacks. Versions before 3.4.7 have a vulnerability in the IN_PLACE sanitization process that can omit sanitizing shadow DOM content attached to elements inside <template>.content. This flaw allows malicious code to survive sanitization and execute in the context of the application when the sanitized template is cloned and inserted into the DOM. The vulnerability is identified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The fix was introduced in version 3.4.7.
Potential Impact
An attacker can inject malicious scripts or event handlers that bypass sanitization and execute in the victim's browser, potentially leading to cross-site scripting attacks. This can compromise user data, session tokens, or perform unauthorized actions within the affected web application. The CVSS 4.0 score is 6.3 (medium severity), indicating a moderate risk with network attack vector and no privileges required but user interaction needed.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.7 or later, where this vulnerability is fixed. No other mitigation is specified or required as the issue is resolved in the official patch.
CVE-2026-49978: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
Description
DOMPurify versions prior to 3.4.7 contain a cross-site scripting (XSS) vulnerability where the IN_PLACE sanitization method can skip shadow DOM contents inside <template>.content. This allows attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to persist and execute when sanitized templates are cloned and inserted. The issue is fixed in version 3.4.7.
CVSS v4.0
Score 6.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DOMPurify is a sanitizer for HTML, MathML, and SVG that prevents XSS attacks. Versions before 3.4.7 have a vulnerability in the IN_PLACE sanitization process that can omit sanitizing shadow DOM content attached to elements inside <template>.content. This flaw allows malicious code to survive sanitization and execute in the context of the application when the sanitized template is cloned and inserted into the DOM. The vulnerability is identified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The fix was introduced in version 3.4.7.
Potential Impact
An attacker can inject malicious scripts or event handlers that bypass sanitization and execute in the victim's browser, potentially leading to cross-site scripting attacks. This can compromise user data, session tokens, or perform unauthorized actions within the affected web application. The CVSS 4.0 score is 6.3 (medium severity), indicating a moderate risk with network attack vector and no privileges required but user interaction needed.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.7 or later, where this vulnerability is fixed. No other mitigation is specified or required as the issue is resolved in the official patch.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-02T18:30:51.281Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a569d1f68715ace43280dab
Added to database: 07/14/2026, 20:33:35 UTC
Last enriched: 07/14/2026, 20:54:49 UTC
Last updated: 07/14/2026, 21:04:55 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.