CVE-2026-128068
CVE-2026-128068 · rails-html-sanitizer: Possible regular expression denial of service with certain configurations
CVSS 5.3 · Medium · EPSS 0.5% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- rails-html-sanitizerNo fix published
- ruby-rails-html-sanitizer Debian 12No fix published
- ruby-rails-html-sanitizer Debian 13No fix published
- ruby-rails-html-sanitizer Debian 14No fix published
- and 8 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-rails-html-sanitizer"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Affected products and versions
rails-html-sanitizer
- Versions
- >= 1.0.3, < 1.7.2: Affected
No fix published
ruby-rails-html-sanitizer Debian 12
- Versions
- 1.4.4-1
- 1.6.2-1
- 1.6.2-1~exp1
- 1.7.0-1
- 1.7.0-2
- 1.7.1-1
All versions (7)
- 1.7.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Debian 13
- Versions
- 1.6.2-1
- 1.7.0-1
- 1.7.0-2
- 1.7.1-1
- 1.7.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Debian 14
- Versions
- 1.6.2-1
- 1.7.0-1
- 1.7.0-2
- 1.7.1-1
- 1.7.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rails-html-sanitizer RubyGems
- Versions
- 1.0.3
- 1.0.4
- 1.1.0
- 1.2.0
- 1.3.0
- 1.4.0
All versions (18)
- 1.4.1
- 1.4.2
- 1.4.3
- 1.4.4
- 1.5.0
- 1.6.0
- 1.6.0.rc1
- 1.6.0.rc2
- 1.6.1
- 1.6.2
- 1.7.0
- 1.7.1
- Affected ranges
- ECOSYSTEM: ≥ 1.0.3, < 1.7.2
Update to 1.7.2
ruby-rails-html-sanitizer Ubuntu 16.04 LTS
- Versions
- 1.0.2-1
- 1.0.3-1
- 1.0.3-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Ubuntu 18.04 LTS
- Versions
- 1.0.3-2
- 1.0.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Ubuntu 20.04 LTS
- Versions
- 1.0.4-1
- 1.3.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Ubuntu 22.04 LTS
- Versions
- 1.3.0-2
- 1.4.2-1
- 1.4.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Ubuntu 24.04 LTS
- Versions
- 1.4.4-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Ubuntu 26.10
- Versions
- 1.6.2-1
- 1.7.0-2
- 1.7.1-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
ruby-rails-html-sanitizer Ubuntu 26.04 LTS
- Versions
- 1.6.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published