PT-2026-63991 · Dompurify · Dompurify
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
DOMPurify versions prior to 3.4.0
Description
Function predicates provided via
ADD ATTR or ADD TAGS to the DOMPurify.sanitize() function persist in the internal state EXTRA ELEMENT HANDLING across multiple calls on the same instance. If a subsequent call to the same instance provides ADD ATTR or ADD TAGS as an array instead of a function, the previous function handler is not cleared or overwritten. This allows the handler to continue approving attacker-controlled attributes or tags, potentially bypassing FORBID TAGS and allowing dangerous event-handler attributes to survive sanitization, which leads to cross-site scripting (XSS), a technique where malicious scripts are injected into trusted websites.Recommendations
Update to version 3.4.0.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Dompurify