CyberRota Analysis
AI-GeneratedDOMPurify versions prior to 3.4.6 are vulnerable to a cross-site scripting (XSS) attack, where malicious event-handler attributes can be preserved on attacker-controlled `<form>` elements due to improper sanitization of descendant properties. This vulnerability could allow attackers to execute arbitrary scripts in the context of the user’s browser, potentially compromising sensitive information. Developers and organizations using DOMPurify for sanitizing user input should prioritize upgrading to version 3.4.6 or later to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.6, DOMPurify.sanitize(root, { IN_PLACE: true }) could preserve event-handler attributes on an attacker-controlled <form> root when a descendant name clobbered properties checked by _isClobbered, because _forceRemove no-opped on the parent-less root and _sanitizeAttributes returned early. This issue is fixed in version 3.4.6.
Related CVEs
Other vulnerabilities affecting the same vendor(s)