rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS)
72
High Risk
The HTML/SVG sanitizer validates dangerous URL schemes only on the href and xlink:href attributes. Other URL-bearing attributes such as action, cite, poster, src, srcset, and background skip scheme validation entirely, so a javascript: or scriptable data: URI placed in one of them survives sanitization. A crafted form with a javascript: action passes through as a complete, submittable form whose submission executes the payload, yielding stored cross-site scripting. The fix applies scheme validation to every URL-bearing attribute, judges each srcset candidate on its own, and widens the post-serialization regex coverage to the same attribute set.
You are affected if you are using a version that falls within the vulnerable range and you sanitize untrusted HTML (DOMSanitizer::HTML, the constructor default) and render that output in a browser.
rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 1.0.15.
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.