dompurify is vulnerable to Cross-Site Scripting (XSS)
47
Medium Risk
DOMPurify removes disallowed attributes by calling removeAttributeNode on the element, but a form descendant named removeAttributeNode or getAttributeNode shadows that method through [LegacyOverrideBuiltIns], so the call throws. The code falls back to name based removeAttribute, which ASCII-lowercases its lookup key in an HTML document and skips a case preserved event handler attribute such as ONANIMATIONSTART that entered through an XML/XHTML parse. The rejected handler survives sanitization and runs in the browser. The fix removes the attribute through a cached Element.prototype.removeAttributeNode and flags forms that clobber removeAttributeNode/getAttributeNode so they are removed.
You are affected if you are using a version that falls within the vulnerable range and you sanitize DOM parsed from XML/XHTML input that can carry case preserved event handler attributes.
dompurify is vulnerable to Cross-Site Scripting (XSS) in versions 3.4.14 - 3.4.14.
Upgrade the dompurify library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.