CVE-2026-68749 Details
Description
Inefficient Regular Expression Complexity vulnerability in the CSS scrubber in rrrene html_sanitize_ex allows an unauthenticated remote attacker to exhaust server CPU via a long CSS declaration in sanitized HTML. The declaration regex in HtmlSanitizeEx.Scrubber.CSS.scrub/1 matches the property name with an unbounded greedy [-\w]+ followed by a mandatory :, so a long run of word characters not followed by a colon makes the engine give back one character at a time and retry the colon at every start offset. The work is quadratic in the length of the run, and no length cap is applied to the CSS handed to the scrubber. An 80 KB <style> body costs roughly 2.4 seconds of scheduler time, so a few concurrent requests saturate the BEAM scheduler pool and make the application unresponsive. The impact is CPU exhaustion only. Nothing is read, modified or disclosed. 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.
A denial-of-service vulnerability has been identified in the CSS scrubber of the rrrene html_sanitize_ex library, versions 0.3.1 prior to 1.5.3. This vulnerability arises from inefficient regular expression processing that allows an unauthenticated remote attacker to exhaust server CPU resources. The issue is triggered by a long CSS declaration in sanitized HTML, which the scrubber processes using a regex that matches property names with an unbounded greedy pattern. This leads to quadratic backtracking, where the regex engine takes an excessive amount of time to process the input. As a result, an 80 KB <style> body can consume approximately 2.4 seconds of scheduler time, causing the application to become unresponsive under concurrent load.
Users can update to html_sanitize_ex version 1.5.4 or later, or sanitize with basic_html/1, markdown_html/1, or strip_tags/1, none of which reach the CSS scrubber. Alternatively, define a custom scrubber that disallows <style> elements and style attributes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-68749.html | EEF | PatchThird Party Advisory |
| https://github.com/rrrene/html_sanitize_ex/commit/4f4bd9eb254881462c0461fbab74b29188c2c133 | EEF | Patch |
| https://github.com/rrrene/html_sanitize_ex/commit/b673df33ddf982c8bd0a8bd6348aa247080b3b14 | EEF | |
| https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-4cx2-987x-rr2x | EEF | Broken Link |
| https://osv.dev/vulnerability/EEF-CVE-2026-68749 | EEF | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | EEF |
Affected Products
| Product | Versions |
|---|---|
| rrrene htmlsanitizeex | >= 0.3.1, < 1.5.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 19, 2026 | CVE Modified | EEF |
| Aug 11, 2026 | Initial Analysis | [email protected] |
| Aug 6, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2026 | New CVE Received | EEF |