CVE-2026-128069
Medium 4.7No known exploitationFix availablerails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
Vendor advisory: GHSA-h7wh-q2qr-458c
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 13% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-79, CWE-362
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl4 rubygem-rails-html-sanitizer 1.6.0-8.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| rails | rails-html-sanitizer | < 1.7.2 | Not documented | CVE Program |
| rubygems | rails-html-sanitizer | all versions before 1.7.2 | 1.7.2 | GitHub Advisory Database |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- GitHub Advisory GHSA-h7wh-q2qr-458c (opens in a new tab)github-advisory
- https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9 (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails-html-sanitizer/issues/228 (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2 (opens in a new tab)x_refsource_misc
- https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458c (opens in a new tab)x_refsource_confirm