CVE-2026-128069
CVE-2026-128069 · rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
CVSS 4.7 · Medium · EPSS 0.2% · 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. 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.
- Published
- Updated
Affected products and versions
rails-html-sanitizer
- Versions
- < 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.0
- 1.0.1
- 1.0.2
- 1.0.3
- 1.0.4
- 1.1.0
All versions (21)
- 1.2.0
- 1.3.0
- 1.4.0
- 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.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
Original sources
- https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458c
- https://github.com/rails/rails-html-sanitizer/issues/228
- https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9
- https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2
- https://nvd.nist.gov/vuln/detail/CVE-2026-128069