CVE-2026-128069 rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Before 1.7.2, the HTML4 and HTML5 variants of Rails::HTML::SafeListSanitizer reuse one Rails::HTML::PermitScrubber across calls and mutate its tags and attributes without synchronization. In a multithreaded process, concurrent sanitize calls using different tags: or attributes: options can interleave and cause one call to use the other call's allowlist. If a permissive call admits a script element or event-handler attribute, output expected to be sanitized under a stricter policy can retain it and cause cross-site scripting when rendered. Applications that are single-threaded, use one identical allowlist everywhere, or provide a separate scrubber: are not 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.7.2; = 1.0.0; = 1.0.1; = 1.0.2 +18 more | 1.7.2 | Fixed |
| rails-html-sanitizer | = < 1.7.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems rails-html-sanitizer(RubyGems) | < 1.7.2 | 1.7.2 |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.0 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.1 | No fix listed |
| rubygems rails-html-sanitizer(RubyGems) | = 1.0.2 | No fix listed |
| 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 |
Show 23 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rails-html-sanitizer | = < 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 |
| 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-h7wh-q2qr-458c vendor-advisory
- https://github.com/rails/rails-html-sanitizer/issues/228
- https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9 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-128069 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-125593 third-party-advisory