sanitize-html is vulnerable to Cross-Site Scripting (XSS)
54
CVE Score
Medium
Cross-Site Scripting (XSS)
sanitize-html validates the URL scheme for most attributes but passes the content attribute of meta http-equiv="refresh" through as plain text and does not parse the URL inside it. A content value can carry a javascript: or data: URI past the scheme allowlist, and a browser runs that URI when it processes the refresh directive, even though scheme filtering elsewhere in the library works correctly. The patch parses the URL inside content the same way a browser does and checks its scheme before the value is allowed through.
Upgrade the sanitize-html library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.1.0 - 2.17.7
Fixed in 2.18.0sanitize-html is vulnerable to Cross-Site Scripting (XSS) in versions 0.1.0 - 2.17.7.
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.