CVE-2026-68750
Analyzed Analyzed - Analysis Complete

Denial of Service in html_sanitize_ex via Algorithmic Complexity

Vulnerability report for CVE-2026-68750, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-06

Last updated on: 2026-08-11

Assigner: 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.5.3.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-06
Last Modified
2026-08-11
Generated
2026-08-18
AI Q&A
2026-08-06
EPSS Evaluated
2026-08-17
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
rrrene htmlsanitizeex From 0.3.1 (inc) to 1.5.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is an Inefficient Algorithmic Complexity vulnerability in the html_sanitize_ex library. The traversal engine has a quadratic time complexity issue when processing sibling elements in sanitized HTML. It recursively flattens sibling lists unnecessarily, causing CPU and memory exhaustion. A 160 KB body with 20,000 sibling elements can occupy a scheduler for 1.7 seconds, with costs growing faster than input size.

Detection Guidance

Detect this vulnerability by monitoring CPU and memory usage spikes during HTML sanitization processes. Check for processes handling large sibling element lists in html_sanitize_ex versions 0.3.1 to 1.5.2. Use system monitoring tools like top, htop, or ps to observe resource consumption during HTML processing tasks.

Impact Analysis

An unauthenticated remote attacker can exploit this to exhaust server CPU and memory by sending HTML with many sibling elements. This can cause service degradation or crashes. The attack requires only allowed tags and no special configuration since the traverser is on all public entry points.

Compliance Impact

This vulnerability could lead to denial-of-service conditions by exhausting server CPU and memory, which may violate availability requirements in compliance standards like GDPR (Article 32) and HIPAA (Security Rule). Unauthorized resource exhaustion could also indicate insufficient security controls under these regulations.

Mitigation Strategies

Immediately upgrade html_sanitize_ex to version 1.5.3 or later. Implement input size limits for user-supplied HTML before sanitization to prevent large payloads. Monitor system performance for signs of CPU or memory exhaustion during HTML processing.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68750. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart