sanitize-html is vulnerable to Cross-Site Scripting (XSS)
37
CVE Score
Low
Cross-Site Scripting (XSS)
sanitize-html identifies SVG animation elements by matching the raw tag name, so a namespaced form such as svg:animate is not recognized as the restricted animation tag it actually is. Markup using the namespaced tag can carry an href/xlink:href value with a javascript: URI past the scheme check that normally applies to animation elements, and the browser still executes it when the SVG renders. The fix matches on the local tag name while ignoring any namespace prefix, so the same scheme restriction now applies to the namespaced form.
Upgrade the sanitize-html library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
2.17.7 - 2.17.7
Fixed in 2.18.0sanitize-html is vulnerable to Cross-Site Scripting (XSS) in versions 2.17.7 - 2.17.7.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
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.