Skip to main content

html_sanitize_ex CVE-2026-68750

| EUVDEUVD-2026-54085 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-08-06 EEF GHSA-684p-mhw3-3cwq
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send repeated HTTP requests
  2. Delivery
    Deliver ~20,000 sibling HTML elements in allowed tags
  3. Exploit
    Trigger O(n²) List.flatten in traversal engine
  4. Execution
    Occupy BEAM scheduler for ~1.7s per request
  5. Persist
    Accumulate scheduler blockage across parallel requests
  6. Impact
    Deny 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

html_sanitize_ex 0.3.1 <1.5.3
html_sanitize_ex 69ea11d61525c470b39b6860d024770d5573ff1f <9f5ccedbed230930813f992a1e6906fcf485981e

Affected Packages

euvd html_sanitize_ex fix: 1.5.3

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

Vendor (EEF) PRIMARY 8.2 HIGH
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
vuln.today AI 7.5 HIGH

Network-accessible with no auth, no user interaction, and unchanged scope; impact is availability-only matching scheduler exhaustion with no confidentiality or integrity consequence.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Low
Elixir/Phoenix niche ecosystem library, limited enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy