Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend repeated HTTP requests
-
DeliveryDeliver ~20,000 sibling HTML elements in allowed tags
-
ExploitTrigger O(n²) List.flatten in traversal engine
-
ExecutionOccupy BEAM scheduler for ~1.7s per request
-
PersistAccumulate scheduler blockage across parallel requests
-
ImpactDeny service to legitimate application traffic
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | No special scrubber selection, configuration setting, or authentication is required - the quadratic traversal is exercised by every public entry point of the library regardless of which sanitization profile is active. The necessary and sufficient condition is that the server receives user-supplied HTML and passes it through html_sanitize_ex for sanitization; only allowed tags are needed in the payload. The CVSS 4.0 AT:P metric reflects the implicit requirement that the target application exposes such an endpoint to network callers, which is the library's primary use case and therefore not a meaningful real-world restriction. Exploitation is bounded to availability impact only; no data exfiltration or integrity modification is possible through this vector. Versions before 0.3.1 are not confirmed affected; versions 1.5.3 and later are not affected. |
| Impact | The CVSS 4.0 score of 8.2 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H) correctly captures the network-accessible, unauthenticated, availability-only nature of this flaw. The AT:P (attack requirements present) metric reflects the implicit prerequisite that the target application must expose an html_sanitize_ex-backed endpoint - not a meaningful limiting factor for any application that uses the library for its intended purpose. Impact is limited strictly to availability; there is no confidentiality or integrity component, and scope remains unchanged within the BEAM node. EPSS data was not provided in the source intelligence, so exploitation probability cannot be quantified. The flaw is absent from CISA KEV and no public exploit code exists at time of analysis. Despite the high CVSS score, real-world risk is tempered by the library's niche deployment footprint (Elixir/Phoenix ecosystem only). However, the quadratic scaling means body-size rate limits provide only partial protection - a 40 KB body is still capable of causing meaningful scheduler blockage - and sustained multi-connection attacks can cause disproportionate resource drain relative to attacker bandwidth. |
| Exploit ScenarioDerived | An unauthenticated attacker submits repeated HTTP POST requests, each containing a ~160 KB HTML body composed of approximately 20,000 consecutive sibling elements using only allowed tags such as repeated occurrences of a simple inline element. Each request causes the BEAM scheduler to process O(n²) list operations, blocking it for roughly 1.7 seconds; because cost scales quadratically, payloads slightly larger impose disproportionately more load. Sustained parallel submissions across available BEAM schedulers can render the application unresponsive to legitimate traffic without requiring any exploit code beyond a simple script. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Quadratic CPU and memory exhaustion in html_sanitize_ex affects all applications that accept user-supplied HTML for sanitization, regardless of scrubber configuration. The traversal engine's list clause performs a redundant List.flatten over the entire remaining sibling tail at every recursion step, making sanitization cost O(n²) in sibling count rather than O(n). A 160 KB input of 20,000 sibling elements monopolizes a BEAM scheduler for approximately 1.7 seconds per request; no public exploit has been identified at time of analysis, and the flaw is not listed in CISA KEV, but the attack requires no authentication and no special server configuration.
RemediationAI
Upgrade html_sanitize_ex to version 1.5.3 or later by updating mix.exs to specify ~> 1.5.3 or >= 1.5.3 and running mix deps.get followed by mix deps.compile; the specific fix is in commit 9f5ccedbed230930813f992a1e6906fcf485981e. The vendor security advisory at https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-463q-p2fr-mh9p should be consulted for any additional guidance. If an immediate upgrade is not feasible, enforce a hard request body-size limit (e.g., 20-40 KB) in the HTTP layer before content reaches the sanitizer - this limits the maximum sibling count per request but does not eliminate risk because even sub-limit payloads impose elevated scheduler cost relative to normal HTML; this is a partial compensating control only. Additionally, rate-limit sanitization endpoints per IP and consider placing the sanitization call in a separate supervised process with a timeout to prevent a single blocked scheduler from starving the application.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
html_sanitize_ex is an Elixir HTML sanitization library (CPE: cpe:2.3:a:rrrene:html_sanitize_ex) running on the BEAM runtime. The root cause is CWE-407 (Algorithmic Complexity): in the list clause of HtmlSanitizeEx.Traverser.traverse/2, the original implementation recursively processed the tail and then called List.flatten([head] ++ tail) at each recursion depth. Because the recursive call already returns a flattened structure, this flatten redundantly re-traverses and copies all n-1 remaining siblings when processing sibling 1, all n-2 when processing sibling 2, and so on - yielding O(n²) total work. The fix (commit 9f5ccedbed230930813f992a1e6906fcf485981e) replaces the recursive head/tail decomposition with Enum.reduce/3 building an accumulator list in reverse, then a single terminal List.flatten after all siblings are processed, restoring O(n) traversal. The traverser sits beneath every public sanitization entry point, meaning the flaw is architecture-wide rather than isolated to a specific scrubber.
Know when Html Sanitize Ex gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-accessible with no auth, no user interaction, and unchanged scope; impact is availability-only matching scheduler exhaustion with no confidentiality or integrity consequence.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
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.5.3.
Executive ViewAI
html_sanitize_ex, a widely-deployed HTML sanitization library, contains a vulnerability (CVE-2026-68750) that allows unauthenticated attackers to exhaust server resources and cause service disruption through maliciously-crafted HTML input. Any application processing user-supplied HTML is affected. A vendor patch is available.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Html Sanitize Ex
View allCPU exhaustion via quadratic regex backtracking in rrrene/html_sanitize_ex, an Elixir HTML sanitization library, allows
html_sanitize_ex's HTML5 scrubber (versions 0.3.1 through 1.5.2) permits the `form` and `formaction` attributes to survi
Open redirect in html_sanitize_ex (Elixir, versions 0.3.1 through 1.5.2) allows remote attackers to force page visitors
html_sanitize_ex's HTML5 scrubber (versions 0.3.1 through before 1.5.3) passes attacker-controlled URIs through the `dat
CSS at-rule injection in html_sanitize_ex (Elixir, versions 0.3.1-1.5.3) allows unauthenticated remote users to embed `@
EUVD-2026-54085
GHSA-684p-mhw3-3cwq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB