CVE-2026-68750
published high CVSS 4.0 · 8.2Quadratic sibling re-flattening in the html_sanitize_ex traversal engine allows CPU-exhaustion denial of service
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rrrene | — | html_sanitize_ex0.3.1 to < 1.4.5 · 1.5.0-rc.0 to < 1.5.3 · Other versions: unaffected | Affected | Not stated | EEF |
| rrrene | — | rrrene/html_sanitize_exhtml_sanitize_ex · 69ea11d61525c470b39b6860d024770d5573ff1f and later (affected · git); changes: unaffected at 507a6fb95dd4c466cac8a8355d8989043e9fbcc1, unaffected at 9f5ccedbed230930813f992a1e6906fcf485981e · Other versions: unaffected | Version-specific | Not stated | EEF |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rrrene | html_sanitize_ex | 0.3.1 to < 1.4.5 (affected · semver)1.5.0-rc.0 to < 1.5.3 (affected · semver)Default: unaffected | EEF · cna |
| rrrene | html_sanitize_ex | 69ea11d61525c470b39b6860d024770d5573ff1f and later (affected · git); changes: unaffected at 507a6fb95dd4c466cac8a8355d8989043e9fbcc1, unaffected at 9f5ccedbed230930813f992a1e6906fcf485981eDefault: unaffected | EEF · cna |
Weaknesses
1- CWE-407 CWE-407 Inefficient Algorithmic Complexity
References
6- EEF CNA record for CVE-2026-68750 https://cna.erlef.org/cves/CVE-2026-68750.html
- Fix commit 507a6fb in rrrene/html_sanitize_ex https://github.com/rrrene/html_sanitize_ex/commit/507a6fb95dd4c466cac8a8355d8989043e9fbcc1
- Introducing commit 69ea11d in rrrene/html_sanitize_ex https://github.com/rrrene/html_sanitize_ex/commit/69ea11d61525c470b39b6860d024770d5573ff1f
- Fix commit 9f5cced in rrrene/html_sanitize_ex https://github.com/rrrene/html_sanitize_ex/commit/9f5ccedbed230930813f992a1e6906fcf485981e
- https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-463q-p2fr-mh9p
- OSV record EEF-CVE-2026-68750 https://osv.dev/vulnerability/EEF-CVE-2026-68750
Provider assertions
2EEF · cna
Quadratic sibling re-flattening in the html_sanitize_ex traversal engine allows CPU-exhaustion denial of service
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 816d6a4a0917edd2e7f5cc8b32b64bde567cbd69aef13de846e666e836d114a2
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record