html_sanitize_ex is vulnerable to Inclusion of Functionality from Untrusted Control Sphere
23
Low Risk
The HTML5 scrubber allows the object element but never registers its data attribute for URI scheme checking, guarding it only with a lowercase javascript: prefix match. As a result mixed-case javascript:, data: URIs, protocol-relative URLs, and same-origin paths survive sanitizing, letting sanitized content load a document of the submitter's choosing into a trusted page. The fix validates the object data attribute against the URI scheme allowlist.
You are affected if you are using a version that falls within the vulnerable range and you use the HtmlSanitizeEx.html5/1 scrubber, or a custom scrubber extending :html5, and render the sanitized output to other users.
html_sanitize_ex is vulnerable to Inclusion of Functionality from Untrusted Control Sphere in versions 0.3.1 - 1.5.2.
Upgrade the html_sanitize_ex 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