CVE-2026-68750
Quadratic sibling re-flattening in the html_sanitize_ex traversal engine allows CPU-exhaustion denial of service
Mitigation
- Upgrade html_sanitize_ex to 1.5.3 or later.
- Vendor workaround: Cap the size of user-supplied HTML, and in particular the node count, before it reaches the sanitizer. The quadratic growth means the cap has to be small to be effective.
Who should check
- Anyone running rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3
- Anyone running rrrene html_sanitize_ex >= 69ea11d61525c470b39b6860d024770d5573ff1f, < *
Vulnerability facts
- Affected
- rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 69ea11d61525c470b39b6860d024770d5573ff1f, < *
- Fixed in
- rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-407
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-68750. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-68750.md Affected: rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 69ea11d61525c470b39b6860d024770d5573ff1f, < * Fixed in: rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3 Steps: 1. Search this machine and project for rrrene html_sanitize_ex: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://cna.erlef.org/cves/CVE-2026-68750.html
- https://osv.dev/vulnerability/EEF-CVE-2026-68750
- https://github.com/rrrene/html_sanitize_ex/commit/69ea11d61525c470b39b6860d024770d5573ff1f
- https://github.com/rrrene/html_sanitize_ex/commit/507a6fb95dd4c466cac8a8355d8989043e9fbcc1
- https://github.com/rrrene/html_sanitize_ex/commit/9f5ccedbed230930813f992a1e6906fcf485981e
FAQ
Is CVE-2026-68750 being exploited?
There is no confirmed exploitation: CVE-2026-68750 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-68750?
High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-68750?
rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 69ea11d61525c470b39b6860d024770d5573ff1f, < *.
Is there a fix for CVE-2026-68750?
Yes. Fixed in rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3. Upgrade html_sanitize_ex to 1.5.3 or later. Vendor workaround: Cap the size of user-supplied HTML, and in particular the node count, before it reaches the sanitizer. The quadratic growth means the cap has to be small to be effective.
How do I check if I'm affected by CVE-2026-68750?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.