CVE-2026-49978: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
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.
AI Analysis
Technical Summary
DOMPurify is a sanitizer for HTML, MathML, and SVG to prevent XSS attacks. Versions before 3.4.7 have a vulnerability in the IN_PLACE sanitization method that can omit sanitizing shadow DOM contents attached inside <template>.content elements. This omission allows malicious markup, including event handlers, JavaScript URLs, or scripts, to persist and execute in the context of the application when the sanitized template is cloned and inserted into the DOM. The vulnerability is addressed by the fix in version 3.4.7.
Potential Impact
An attacker can inject malicious scripts or event handlers that survive sanitization and execute in the victim's browser, potentially leading to cross-site scripting attacks. This can result in unauthorized script execution, data theft, or other client-side impacts. The CVSS 4.0 score is 6.3 (medium severity), indicating a moderate risk without requiring privileges or user interaction beyond viewing the affected content.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.7 or later, where this vulnerability is fixed. No other mitigation is indicated 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 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.
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 to prevent XSS attacks. Versions before 3.4.7 have a vulnerability in the IN_PLACE sanitization method that can omit sanitizing shadow DOM contents attached inside <template>.content elements. This omission allows malicious markup, including event handlers, JavaScript URLs, or scripts, to persist and execute in the context of the application when the sanitized template is cloned and inserted into the DOM. The vulnerability is addressed by the fix in version 3.4.7.
Potential Impact
An attacker can inject malicious scripts or event handlers that survive sanitization and execute in the victim's browser, potentially leading to cross-site scripting attacks. This can result in unauthorized script execution, data theft, or other client-side impacts. The CVSS 4.0 score is 6.3 (medium severity), indicating a moderate risk without requiring privileges or user interaction beyond viewing the affected content.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.7 or later, where this vulnerability is fixed. No other mitigation is indicated 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/21/2026, 21:16:29 UTC
Last updated: 08/27/2026, 22:52:12 UTC
Views: 82
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.