Cross-site scripting in DOMPurify - #VU152600

 

Cross-site scripting in DOMPurify - #VU152600

Published: September 28, 2026


Vulnerability identifier: #VU152600
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script.

The vulnerability exists due to improper neutralization of rawtext text content in the DOMPurify IN_PLACE return path when serializing and reparsing a force-removed rawtext root in plain HTML context. A remote attacker can provide a crafted rawtext node to execute arbitrary script.

Moving the returned node with appendChild alone does not trigger the payload.


Affected software

DOMPurify

Remediation

Install security update from vendor's website.

DOMPurify - update to 3.4.16

External References

Related Security Bulletins