# CVE-2026-68749: Quadratic regex backtracking in the html\_sanitize\_ex CSS scrubber allows CPU-exhaustion denial of service

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-28)
- **CWE:** CWE-1333
- **Published:** 2026-08-06T14:50:12.593Z
- **Modified:** 2026-11-19T09:17:53.150Z

## Who should check

- Anyone running rrrene html\_sanitize\_ex \>= 0.3.1, \< 1.4.5; \>= 1.5.0-rc.0, \< 1.5.3
- Anyone running rrrene html\_sanitize\_ex \>= 21f90012eb21aa36f4e3701b7547e12faf0f3c8b, \< \*

## 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.

## Affected and fixed versions

- rrrene html\_sanitize\_ex: \>= 0.3.1, \< 1.4.5; \>= 1.5.0-rc.0, \< 1.5.3 (cvelist)
- rrrene html\_sanitize\_ex: \>= 21f90012eb21aa36f4e3701b7547e12faf0f3c8b, \< \* (cvelist)

## Mitigation

- Upgrade html\_sanitize\_ex to 1.5.3 or later.
- Vendor workaround: Sanitize with basic\_html/1, markdown\_html/1 or strip\_tags/1, none of which reach the CSS scrubber, or define a custom scrubber that allows neither \<style\> elements nor style attributes.
- 
- Capping the size of user-supplied HTML before it reaches the sanitizer bounds the cost, though the quadratic growth means the cap has to be small to be effective.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68749. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68749.md
Affected: rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 21f90012eb21aa36f4e3701b7547e12faf0f3c8b, < *
Fixed in: rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3

Steps:
1. Search this machine and project for rrrene html_sanitize_ex: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68749 being exploited?

There is no confirmed exploitation: CVE-2026-68749 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-68749?

High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-68749?

rrrene html\_sanitize\_ex \>= 0.3.1, \< 1.4.5; \>= 1.5.0-rc.0, \< 1.5.3; rrrene html\_sanitize\_ex \>= 21f90012eb21aa36f4e3701b7547e12faf0f3c8b, \< \*.

### Is there a fix for CVE-2026-68749?

Yes. Fixed in rrrene html\_sanitize\_ex 1.4.5, rrrene html\_sanitize\_ex 1.5.3. Upgrade html\_sanitize\_ex to 1.5.3 or later. Vendor workaround: Sanitize with basic\_html/1, markdown\_html/1 or strip\_tags/1, none of which reach the CSS scrubber, or define a custom scrubber that allows neither \<style\> elements nor style attributes.  Capping the size of user-supplied HTML before it reaches the sanitizer bounds the cost, though the quadratic growth means the cap has to be small to be effective.

### How do I check if I'm affected by CVE-2026-68749?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-4cx2-987x-rr2x>
- patch: <https://cna.erlef.org/cves/CVE-2026-68749.html>
- patch: <https://osv.dev/vulnerability/EEF-CVE-2026-68749>
- patch: <https://github.com/rrrene/html_sanitize_ex/commit/21f90012eb21aa36f4e3701b7547e12faf0f3c8b>
- patch: <https://github.com/rrrene/html_sanitize_ex/commit/4f4bd9eb254881462c0461fbab74b29188c2c133>
- patch: <https://github.com/rrrene/html_sanitize_ex/commit/b673df33ddf982c8bd0a8bd6348aa247080b3b14>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68749>

HTML: <https://flawdb.com/CVE-2026-68749> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68749>
