Skip to main content
EPSS 0.4%top 62%

CVE-2026-68749: CWE-1333 Inefficient Regular Expression Complexity in rrrene html_sanitize_ex

0
High
VulnerabilityCVE-2026-68749cvecve-2026-68749cwe-1333
Published: 08/06/2026 (08/06/2026, 14:50:12 UTC)
Source: CVE Database V5
Vendor/Project: rrrene
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

rrrene

html_sanitize_ex

Affected versions
>=0.3.1 <1.4.5>=1.5.0-rc.0 <1.5.3

rrrene

html_sanitize_ex

html_sanitize_ex
pkg:hex/html_sanitize_ex
Affected versions
>=0.3.1 <1.4.5>=1.5.0-rc.0 <1.5.3
GitHub Actionsmore threats →cve
rrrene/html_sanitize_ex
pkg:github/rrrene/html_sanitize_ex
CPE configurations
cpe: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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 17:15:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses