CVE-2026-128068 rails-html-sanitizer: Possible regular expression denial of service with certain configurations
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 1 fixed, 1 partially fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux rubygem-rails-html-sanitizer(Azure Linux 4.0) | All versions | No fix listed | No fix yet |
| debian/ruby-rails-html-sanitizer(Debian 12) | = 1.4.4-1; = 1.6.2-1; = 1.6.2-1~exp1; = 1.7.0-1 +4 more | No fix listed | No fix yet |
| debian/ruby-rails-html-sanitizer(Debian 13) | = 1.6.2-1; = 1.7.0-1; = 1.7.0-2; = 1.7.1-1 +2 more | No fix listed | No fix yet |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/ruby-rails-html-sanitizer(Debian 14) | < 1.7.2-1; = 1.6.2-1; = 1.7.0-1; = 1.7.0-2 +2 more | 1.7.2-1 | Partially fixed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.3; = 1.0.4; = 1.1.0; = 1.2.0 +15 more | 1.7.2 | Fixed |
| rails-html-sanitizer | = >= 1.0.3, < 1.7.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems rails-html-sanitizer(RubyGems) | >= 1.0.3, < 1.7.2 | 1.7.2 |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.3 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.4 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.1.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.2.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.3.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.4.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.4.1 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.4.2 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.4.3 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.4.4 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.5.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.6.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.6.0.rc1 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.6.0.rc2 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.6.1 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.6.2 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.7.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.7.1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | All versions | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:14) | All versions | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:13) | All versions | No fix listed |
| rails-html-sanitizer | = >= 1.0.3, < 1.7.2 | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:24.04) | All versions | No fix listed |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby-rails-html-sanitizer(Ubuntu:26.10) | All versions | No fix listed |
| azure linux rubygem-rails-html-sanitizer(Azure Linux:4.0) | All versions | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.4.4-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.6.2-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.6.2-1~exp1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.7.0-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.7.0-2 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.7.1-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:12) | = 1.7.2-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:13) | = 1.6.2-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:13) | = 1.7.0-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:13) | = 1.7.0-2 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:13) | = 1.7.1-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:13) | = 1.7.2-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:14) | < 1.7.2-1 | 1.7.2-1 |
| debian/ruby-rails-html-sanitizer(Debian:14) | = 1.6.2-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:14) | = 1.7.0-1 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:14) | = 1.7.0-2 | No fix listed |
| debian/ruby-rails-html-sanitizer(Debian:14) | = 1.7.1-1 | No fix listed |
References
- https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-cpgf-5mjf-73p7 vendor-advisory
- https://github.com/rails/rails-html-sanitizer/commit/f776f963b9d9346271aade9cb903e793fd38e865 patch
- https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2
- github.com
- github.com
- github.com product
- Debian Security Tracker CVE-2026-128068 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-125592 third-party-advisory