html_sanitize_ex is vulnerable to Denial of Service (DoS)
71
CVE Score
High
Denial of Service (DoS)
The traversal engine processes a node's sibling list by recursing on the tail and then calling List.flatten over the already flattened result, so each of n siblings copies and re-walks the entire remaining tail. This makes traversal quadratic in the number of siblings, and the traverser runs on every public entry point regardless of which scrubber is used. Sanitizing HTML that contains a large flat run of allowed sibling elements exhausts CPU and memory and can make the service unresponsive. The fix removes the redundant re-flattening so traversal cost is linear.
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.
0.3.1 - 1.5.2
Fixed in 1.5.3html_sanitize_ex is vulnerable to Denial of Service (DoS) 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.