# CVE-2026-128069: rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-13 · Modified: 2026-11-18
- Aliases: GHSA-h7wh-q2qr-458c, CGA-695f-mx22-8r39, CGA-6gpw-47m8-5wq8, CGA-6x3m-9rh9-574w, CGA-9jw8-4vx4-qfh7, CGA-mxm8-h94q-c7cj, CGA-qxrg-mvg8-jprx, DEBIAN-CVE-2026-128069, CGA-3fjm-43v2-m52v, CGA-75c8-g52f-3vv3, CGA-gvqc-pm7m-qxqq, CGA-h3qf-cfh5-pcqj, CGA-jrff-3gcg-2fxg, CGA-mjv9-m3q6-c9hr, CGA-mp4w-mc6j-29p7, CGA-pwfr-48m9-6whm, CGA-qqmj-gvf9-933c, CGA-rmrf-9m8w-6hjp, CGA-xcjp-8qf3-v2fq, CGA-3h8f-c3jh-q9wx, CGA-3mqh-98hh-5fcv, CGA-crrp-cwqq-cmwh, CGA-7fpm-r5jh-m54g, CGA-qh5j-wmcx-hh35, CGA-xpc5-2cxr-xhh3, CGA-fv22-mj4h-jrx4, UBUNTU-CVE-2026-128069
- Record: https://cvemate.com/vulnerability/CVE-2026-128069 · JSON: https://cvemate.com/vulnerability/CVE-2026-128069/json

## Description

```text
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.
```

## Signals

- CVSS: 4.7 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.216%, percentile 12.773%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard commercial-gitlab-rails-ee-19.1 (Chainguard): All versions (No fix recorded)
- chainguard commercial-gitlab-rails-ee-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.2 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-19.2 (Chainguard): All versions (No fix recorded)
- debian ruby-rails-html-sanitizer (Debian): All versions (No fix recorded) \| \< 1.7.2-1
- ubuntu ruby-rails-html-sanitizer (Ubuntu): All versions (No fix recorded)
- RubyGems rails-html-sanitizer (RubyGems): \< 1.7.2
- rails rails-html-sanitizer: \< 1.7.2

## References

- <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://github.com/rails/rails-html-sanitizer>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/GHSA-h7wh-q2qr-458c.yml>
- <https://security-tracker.debian.org/tracker/CVE-2026-128069>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128069.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-128069>
- <https://ubuntu.com/security/CVE-2026-128069>
- <https://www.cve.org/CVERecord?id=CVE-2026-128069>

---

Data as of 2026-12-05T06:40:40.371Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
