rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS)
54
Medium Risk
The sanitizer checks inline style attribute values with a regex that only matches url( when a quote character follows it, while the <style> element path uses a quote-optional check that also decodes CSS escapes before matching. Untrusted SVG or HTML carrying style attributes with unquoted external URLs, hex-escaped schemes, @import, expression(), or data: values keeps those attributes through sanitization. The fix routes inline style attribute values through the same dangerous-CSS check already used for <style> element text.
You are affected if you are using a version that falls within the vulnerable range and your application renders sanitized SVG or HTML.
rhukster/dom-sanitizer is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 1.0.11.
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