CVE-2026-49458: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
DOMPurify versions prior to 3.4.6 contain a cross-site scripting (XSS) vulnerability due to improper input neutralization during web page generation. The vulnerability arises when using DOMPurify.sanitize with the IN_PLACE option on same-origin foreign-realm DOM nodes, causing certain sanitization checks to be bypassed. This allows executable markup to survive sanitization. The issue is fixed in version 3.4.6.
AI Analysis
Technical Summary
DOMPurify is a sanitizer for HTML, MathML, and SVG to prevent XSS attacks. Before version 3.4.6, the sanitize function with the IN_PLACE option accepted same-origin foreign-realm DOM nodes, but subsequent checks used parent-realm constructors. This mismatch caused instanceof checks for forms, named node maps, document fragments, and elements to fail, skipping critical sanitization branches related to clobbering, template content, and shadow DOM. As a result, executable markup could remain in sanitized content, leading to potential XSS vulnerabilities. The vulnerability is resolved in DOMPurify version 3.4.6.
Potential Impact
An attacker could exploit this vulnerability to inject executable markup that survives sanitization, potentially leading to cross-site scripting attacks. This could result in limited confidentiality and integrity impacts, such as executing malicious scripts in the context of the affected web application. The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, user interaction required, and scope changed.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.6 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary fixes. Users should ensure they do not use vulnerable versions with the IN_PLACE option on same-origin foreign-realm DOM nodes.
CVE-2026-49458: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
Description
DOMPurify versions prior to 3.4.6 contain a cross-site scripting (XSS) vulnerability due to improper input neutralization during web page generation. The vulnerability arises when using DOMPurify.sanitize with the IN_PLACE option on same-origin foreign-realm DOM nodes, causing certain sanitization checks to be bypassed. This allows executable markup to survive sanitization. The issue is fixed in version 3.4.6.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DOMPurify is a sanitizer for HTML, MathML, and SVG to prevent XSS attacks. Before version 3.4.6, the sanitize function with the IN_PLACE option accepted same-origin foreign-realm DOM nodes, but subsequent checks used parent-realm constructors. This mismatch caused instanceof checks for forms, named node maps, document fragments, and elements to fail, skipping critical sanitization branches related to clobbering, template content, and shadow DOM. As a result, executable markup could remain in sanitized content, leading to potential XSS vulnerabilities. The vulnerability is resolved in DOMPurify version 3.4.6.
Potential Impact
An attacker could exploit this vulnerability to inject executable markup that survives sanitization, potentially leading to cross-site scripting attacks. This could result in limited confidentiality and integrity impacts, such as executing malicious scripts in the context of the affected web application. The CVSS score of 6.1 reflects a medium severity with network attack vector, low attack complexity, no privileges required, user interaction required, and scope changed.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.6 or later, where this vulnerability is fixed. There is no indication of alternative mitigations or temporary fixes. Users should ensure they do not use vulnerable versions with the IN_PLACE option on same-origin foreign-realm DOM nodes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-30T02:43:33.107Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a569d1f68715ace43280d9b
Added to database: 07/14/2026, 20:33:35 UTC
Last enriched: 07/14/2026, 20:55:06 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.