Bug 2444135 (CVE-2026-0540)

Summary: CVE-2026-0540 DOMPurify: DOMPurify: Cross-site scripting vulnerability
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, abrianik, akostadi, alcohan, amasferr, anjoseph, caswilli, chfoley, cmah, dhanak, dmayorov, drosa, dschmidt, eaguilar, ebaron, erezende, eric.wittmann, fdeutsch, ggrzybek, gparvin, ibek, janstey, jbalunas, jkoehler, jlanda, jlledo, jolong, jprabhak, jrokos, kaycoth, kshier, kverlaen, lchilton, lphiri, manissin, mnovotny, nipatil, oramraz, pahickey, pantinor, parichar, pjindal, rgodfrey, rhaigner, rkubis, sausingh, sfeifer, simaishi, smcdonal, smullick, stcannon, stirabos, swoodman, tasato, teagle, thason, tsedmik, wtam, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A cross site scripting flaw has been discovered in the DOMPurify npm library. This flaw 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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2444265, 2444267, 2444273, 2444279, 2444281, 2444283, 2444288, 2444261, 2444263, 2444269, 2444271, 2444275, 2444277, 2444285, 2444287    
Bug Blocks:    

Description OSIDB Bzimport 2026-03-03 18:01:25 UTC
DOMPurify 3.1.3 through 3.3.1 and 2.5.3 through 2.5.8, fixed in commit 729097f, 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.