rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS)
61
Medium Risk
dom-sanitizer only walks allow-listed elements and never visits XML processing instructions, comments, or CDATA sections, so markup hidden inside <?...?>, <!--...-->, or <![CDATA[...]]> survives sanitization unescaped. When the sanitized SVG or MathML is inserted inline into an HTML page, the hidden markup becomes live and can run injected <img onerror>-style payloads. The fix walks every document node, strips processing instructions and comments, and re-serializes CDATA content as escaped text.
You are affected if you are using a version that falls within the vulnerable range and you insert the sanitized SVG or MathML output inline into an HTML page.
rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.5 - 1.0.16.
Upgrade the rhukster/dom-sanitizer 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.