rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
Summary
| CVE | CVE-2026-128069 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-13 18:17:34 UTC |
| Updated | 2026-11-13 18:17:34 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 4.7 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Problem Types: CWE-79 | CWE-362 | CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation | CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 4.7 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 3.1 | CNA | DECLARED | 4.7 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Rails | Rails-html-sanitizer | affected < 1.7.2 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2 | [email protected] | github.com | |
| github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7... | [email protected] | github.com | |
| github.com/rails/rails-html-sanitizer/issues/228 | [email protected] | github.com | |
| github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.