rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
CVE-2026-128069Published 13 Nov 2026, 17:17 UTC
Real-world risk
0.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.7
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| rails-html-sanitizerNiche | < 1.7.2 | 1.7.2 |
What to do
Update to a fixed version: 1.7.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 13), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.315 × threat 0.850.803
- Rounded to one decimal between 0.1 and 100.8
Exploitation and evidence timeline
- 13 Nov 2026 Published
- 3 Dec 2026 Risk 0.8 (cvss fallback)
Weakness
CWE-79, CWE-362
References
- https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458cvendor-advisory
- https://github.com/rails/rails-html-sanitizer/issues/228misc
- https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9misc
- https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2misc
- CVE-2026-128069 on CVE.org