Cross-site scripting in DOMPurify - #VU152599

 

Cross-site scripting in DOMPurify - #VU152599

Published: September 28, 2026


Vulnerability identifier: #VU152599
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/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 code in the victim page origin.

The vulnerability exists due to improper neutralization of input during web page generation in DOMPurify IN_PLACE sanitization when processing attacker-supplied markup with a node-removing afterSanitizeElements or afterSanitizeAttributes hook. A remote attacker can supply crafted markup containing an event handler in a descendant of a removed non-root element to execute arbitrary code in the victim page origin.


Affected software

DOMPurify

Remediation

Install security update from vendor's website.

DOMPurify - update to 3.4.16

External References

Related Security Bulletins