# CVE-2026-68749: Quadratic regex backtracking in the html_sanitize_ex CSS scrubber allows CPU-exhaustion denial of service

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-08-06T14:50:12.593Z
- Modified: 2026-11-25T06:31:00.632Z
- Also known as: EEF-CVE-2026-68749, GHSA-4cx2-987x-rr2x
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- html_sanitize_ex: from 0.3.1 before 1.4.5; from 1.5.0-rc.0 before 1.5.3
- rrrene/html_sanitize_ex: from 21f90012eb21aa36f4e3701b7547e12faf0f3c8b before *
- html_sanitize_ex (Hex): from 0.3.1 before 1.4.5; from 1.5.0-rc.0 before 1.5.3
- https://github.com/rrrene/html_sanitize_ex: from 21f90012eb21aa36f4e3701b7547e12faf0f3c8b before 4f4bd9eb254881462c0461fbab74b29188c2c133; before b673df33ddf982c8bd0a8bd6348aa247080b3b14
- rrrene htmlsanitizeex: from 0.3.1 before 1.5.3

## Every score

- EEF: CVSS:4.0 8.2 High `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-4cx2-987x-rr2x> (advisory, broken-link, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-68749.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-68749> (patch, related, third-party-advisory)
- <https://github.com/rrrene/html_sanitize_ex/commit/21f90012eb21aa36f4e3701b7547e12faf0f3c8b> (related, web)
- <https://github.com/rrrene/html_sanitize_ex/commit/4f4bd9eb254881462c0461fbab74b29188c2c133> (fix, patch)
- <https://github.com/rrrene/html_sanitize_ex/commit/b673df33ddf982c8bd0a8bd6348aa247080b3b14> (fix, patch)
- <https://hex.pm/packages/html_sanitize_ex> (package)

## Sources

- CVE List: [CVE-2026-68749](https://www.cve.org/CVERecord?id=CVE-2026-68749), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-68749](https://osv.dev/vulnerability/EEF-CVE-2026-68749), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-68749](https://nvd.nist.gov/vuln/detail/CVE-2026-68749), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-68749 · Whole record: https://cve.day/CVE-2026-68749.json · Rebuilt by cve.day 2026-11-25T22:59:31.276Z
