CVE-2026-68750: high-severity vulnerability in rrrene html_sanitize_ex
Quadratic sibling re-flattening in the html_sanitize_ex traversal engine allows CPU-exhaustion denial of service
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.2epss 0.9%
Inefficient Algorithmic Complexity vulnerability in the traversal engine in rrrene html_sanitize_ex allows an unauthenticated remote attacker to exhaust server CPU and memory via a flat run of sibling elements in sanitized HTML. The list clause of HtmlSanitizeEx.Traverser.traverse/2 recurses on the tail of a sibling list and then evaluates List.flatten([head] ++ tail) over the already flattened result, so every one of n siblings copies and re-walks the entire remaining tail. The flattening is only needed for the rare case where scrub returns several replacement nodes for one node, but the cost is paid across the whole tail at every step, making traversal quadratic in sibling count.
The traverser sits on every public entry point, so no particular scrubber or configuration is required and the payload needs only allowed tags. A 160 KB body of 20,000 sibling elements occupies a scheduler for roughly 1.7 seconds, and the cost grows faster than the body does.
This issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.3.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Affected products
rrrene · html_sanitize_exRelated CVEs — rrrene html_sanitize_ex
In the same product, most dangerous first.
CVE-2026-68749HIGHQuadratic regex backtracking in the html_sanitize_ex CSS scrubber allows CPU-exhaustion denial of serviceEPSS 0.9%CVE-2026-66829LOWhtml_sanitize_ex HTML5 scrubber keeps attacker-supplied meta refresh, allowing forced cross-origin redirectionEPSS 0.6%CVE-2026-66843LOWhtml_sanitize_ex HTML5 scrubber keeps attacker-supplied `<object>` elements, allowing untrusted content embeddingEPSS 0.5%CVE-2026-68747LOWCSS sanitizer allowlist bypass in html_sanitize_ex via non-declaration inputEPSS 0.5%CVE-2026-66370MEDIUMhtml_sanitize_ex HTML5 scrubber keeps attacker-supplied form-association attributes, allowing form hijackingEPSS 0.4%
References
https://cna.erlef.org/cves/CVE-2026-68750.htmlhttps://github.com/rrrene/html_sanitize_ex/commit/507a6fb95dd4c466cac8a8355d8989043e9fbcc1https://github.com/rrrene/html_sanitize_ex/commit/69ea11d61525c470b39b6860d024770d5573ff1fhttps://github.com/rrrene/html_sanitize_ex/commit/9f5ccedbed230930813f992a1e6906fcf485981ehttps://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-463q-p2fr-mh9phttps://osv.dev/vulnerability/EEF-CVE-2026-68750