Back

MEDIUM

DOMPurify XSS via Missing Rawtext Elements in SAFE_FOR_XML

Published Mar 3, 2026

Description

DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 2726c74, contain a cross-site scripting vulnerability that allows attackers to bypass attribute sanitization by exploiting five missing rawtext elements (noscript, xmp, noembed, noframes, iframe) in the SAFE_FOR_XML regex. Attackers can include payloads like </noscript><img src=x onerror=alert(1)> in attribute values to execute JavaScript when sanitized output is placed inside these unprotected rawtext contexts.

Affected products

Remediation

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

References (13)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Fluid Attacks
Published Mar 3, 2026
Updated Mar 25, 2026
Reserved Dec 27, 2025
CISA Vulnrichment
Updated Mar 3, 2026
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Mar 3, 2026
ENISA EUVD
Assigner VulnCheck
Published Mar 3, 2026
Updated Mar 25, 2026
Exploited since n/a
EUVD-2026-9303 GHSA-V2WJ-7WPQ-C8VV