SecurityContext

CVE-2026-68749: html_sanitize_ex - Denial of Service

  • Cve: CVE-2026-68749
  • Name: html_sanitize_ex - Denial of Service
  • 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.
  • Impact: Attackers can exhaust server CPU, causing denial of service and making the application unresponsive.
  • Remediation: Upgrade to version 1.5.3 or later.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00857
  • Epss percentile: 0.5918
  • Assignee: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
  • Published at: 2026-08-06T16:16:51Z
  • Age in days: 110
  • Modified at: 2026-11-19T09:17:53Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-68749
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-1333Inefficient Regular Expression Complexity

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/rrrene/html_sanitize_ex/commit/4f4bd9eb254881462c0461fbab74b29188c2c133Patch
https://cna.erlef.org/cves/CVE-2026-68749.htmlPatch, Third Party Advisory
https://osv.dev/vulnerability/EEF-CVE-2026-68749Patch, Third Party Advisory
https://github.com/rrrene/html_sanitize_ex/commit/21f90012eb21aa36f4e3701b7547e12faf0f3c8b
https://github.com/rrrene/html_sanitize_ex/commit/b673df33ddf982c8bd0a8bd6348aa247080b3b14

Products

ProductAffectedPlatform boundSourcesUrl
rrrene:htmlsanitizeex>= 0.3.1, < 1.5.3nonvd/v1/products/rrrene/htmlsanitizeex

Projects

RepositoryLink kindsIndexedUrl
rrrene/html_sanitize_excommit, fixyes/v1/repositories/rrrene/html_sanitize_ex

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts