SecurityContext

CVE-2026-128068: rails-html-sanitizer - Regular Expression Denial of Service

  • Cve: CVE-2026-128068
  • Name: rails-html-sanitizer - Regular Expression Denial of Service
  • 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.
  • Impact: Attackers can cause quadratic CPU consumption, leading to denial of service by exhausting server resources.
  • Remediation: Upgrade to version 1.7.2 or later.
  • Vulnerability impact: denial_of_service
  • Requirements: Application must customize allowed tags to include SVG reference elements and permit href or xlink:href
  • Labels source: securitycontext
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Epss score: 0.00454
  • Epss percentile: 0.39884
  • Assignee: [email protected]
  • Published at: 2026-11-13T18:17:34Z
  • Age in days: 11
  • Modified at: 2026-11-16T16:17:49Z
  • References total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-128068
  • Nvd status: received
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: vulnerability type, requirement type, hackerone

Cwe

IdName
CWE-400Uncontrolled Resource Consumption

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865
https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2
https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cpgf-5mjf-73p7

Projects

RepositoryLink kindsIndexedUrl
rails/rails-html-sanitizercommit, fix, package, releases, security_advisoryyes/v1/repositories/rails/rails-html-sanitizer

Index

  • Repositories: 182
  • Repositories high signal: 100
  • Packages: 1

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