CVE-2026-128068: rails-html-sanitizer: Possible regular expression denial of service with certain configurations
Vulnerability summary
CVE-2026-128068 is a medium (CVSS 5.3) Uncontrolled Resource Consumption vulnerability in rails rails-html-sanitizer. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 41.1% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 13-11-2026PublishedVulnerability first disclosed.
- 16-11-2026Last modifiedVulnerability information updated.
Description
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 through 1.7.1, Rails::HTML::PermitScrubber checks SVG href and xlink:href local references with a pattern whose line-start anchor and whitespace class cause an all-whitespace value to be rescanned from each line start. An attacker who supplies HTML can cause quadratic CPU consumption when an application customizes its allowed tags to include an SVG reference element such as use and permits href or xlink:href. The default allowed tag configuration is not affected. CRuby 3.2 and later uses linear-time regular expression matching for this pattern, while CRuby 3.1 and earlier and JRuby are affected. This issue is fixed in version 1.7.2.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · RubygemsEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-1333Inefficient Regular Expression ComplexityThe product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard14 products
- commercial-gitlab-rails-ee-19.1All versions (No fix recorded)
- gitlab-rails-ce-18.10All versions (No fix recorded)
- gitlab-rails-ce-18.11All versions (No fix recorded)
- gitlab-rails-ce-18.8All versions (No fix recorded)
- gitlab-rails-ce-18.9All versions (No fix recorded)
Debian1 product
- ruby-rails-html-sanitizerAll versions (No fix recorded) | < 1.7.2-1
Rails1 product
- rails-html-sanitizer≥ 1.0.3, < 1.7.2
RubyGems1 product
- rails-html-sanitizer≥ 1.0.3, < 1.7.2
Ubuntu1 product
- ruby-rails-html-sanitizerAll versions (No fix recorded)
5 vendors · 18 products
References
10 links- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cpgf-5mjf-73p7X Refsource CONFIRMWEBAdvisoryREPORT
- github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865X Refsource MISCWEBFIXREPORT