CVE-2026-68749: CWE-1333 Inefficient Regular Expression Complexity in rrrene html_sanitize_ex
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.
AI Analysis
Technical Summary
The vulnerability in rrrene html_sanitize_ex's CSS scrubber (HtmlSanitizeEx.Scrubber.CSS.scrub/1) is due to an inefficient regular expression that matches CSS property names with an unbounded greedy pattern followed by a mandatory colon. When a long run of word characters without a colon is processed, the regex engine performs backtracking that results in quadratic time complexity relative to the input length. This can be exploited remotely without authentication by submitting a long CSS declaration in sanitized HTML, causing significant CPU exhaustion on the server. The issue affects html_sanitize_ex versions from 0.3.1 before 1.5.3. The impact is denial of service through resource exhaustion only, with no confidentiality or integrity compromise.
Potential Impact
The vulnerability causes CPU exhaustion on the server processing the CSS scrubber, potentially leading to application unresponsiveness or denial of service. No data confidentiality, integrity, or availability beyond CPU resource exhaustion is affected. The attack requires no authentication and can be triggered remotely by sending specially crafted CSS declarations in sanitized HTML inputs.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider limiting the size of CSS inputs passed to the scrubber or implementing application-level request rate limiting to reduce the risk of CPU exhaustion. Monitor application responsiveness and resource usage to detect potential exploitation attempts.
CVE-2026-68749: CWE-1333 Inefficient Regular Expression Complexity in rrrene html_sanitize_ex
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.
CVSS v4.0
Score 8.2high
Affected software
rrrene
html_sanitize_ex
rrrene
html_sanitize_ex
pkg:hex/html_sanitize_excpe:2.3:a:rrrene:html_sanitize_ex:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in rrrene html_sanitize_ex's CSS scrubber (HtmlSanitizeEx.Scrubber.CSS.scrub/1) is due to an inefficient regular expression that matches CSS property names with an unbounded greedy pattern followed by a mandatory colon. When a long run of word characters without a colon is processed, the regex engine performs backtracking that results in quadratic time complexity relative to the input length. This can be exploited remotely without authentication by submitting a long CSS declaration in sanitized HTML, causing significant CPU exhaustion on the server. The issue affects html_sanitize_ex versions from 0.3.1 before 1.5.3. The impact is denial of service through resource exhaustion only, with no confidentiality or integrity compromise.
Potential Impact
The vulnerability causes CPU exhaustion on the server processing the CSS scrubber, potentially leading to application unresponsiveness or denial of service. No data confidentiality, integrity, or availability beyond CPU resource exhaustion is affected. The attack requires no authentication and can be triggered remotely by sending specially crafted CSS declarations in sanitized HTML inputs.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, consider limiting the size of CSS inputs passed to the scrubber or implementing application-level request rate limiting to reduce the risk of CPU exhaustion. Monitor application responsiveness and resource usage to detect potential exploitation attempts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-31T13:23:00.355Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a74ab42bf8831d539ec74f1
Added to database: 08/06/2026, 15:41:54 UTC
Last enriched: 08/13/2026, 17:15:49 UTC
Last updated: 09/19/2026, 22:01:36 UTC
Views: 53
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.