html_sanitize_ex is vulnerable to URL Redirection to Untrusted Site ('Open Redirect')
23
CVE Score
Low
URL Redirection to Untrusted Site ('Open Redirect')
The HTML5 scrubber keeps meta elements in its sanitized output. Because a meta refresh acts on the whole document rather than the embedded fragment, sanitized content can navigate a visitor to an external site or declare document-wide directives such as a Content-Security-Policy. Filtering only lowercase schemes does not prevent the redirect, though it does not by itself yield script execution. The fix sanitizes meta elements.
Upgrade the html_sanitize_ex library to the patch version.
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.
0.3.1 - 1.5.2
Fixed in 1.5.3html_sanitize_ex is vulnerable to URL Redirection to Untrusted Site ('Open Redirect') in versions 0.3.1 - 1.5.2.
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.