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

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-13T17:17:47.954Z
- Modified: 2026-11-18T13:17:25.290Z
- Also known as: GHSA-h7wh-q2qr-458c
- Weaknesses: CWE-79, CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rails rails-html-sanitizer: < 1.7.2
- rails-html-sanitizer (RubyGems): before 1.7.2

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458c> (web)
- <https://github.com/rails/rails-html-sanitizer/issues/228> (web)
- <https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9> (web)
- <https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2> (web)
- <https://github.com/rails/rails-html-sanitizer> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/GHSA-h7wh-q2qr-458c.yml> (web)

## Sources

- CVE List: [CVE-2026-128069](https://www.cve.org/CVERecord?id=CVE-2026-128069), CVE Terms of Use, modified 2026-11-18
- GitHub Advisory Database: [GHSA-h7wh-q2qr-458c](https://github.com/advisories/GHSA-h7wh-q2qr-458c), CC-BY-4.0, modified 2026-11-13
- NVD: [CVE-2026-128069](https://nvd.nist.gov/vuln/detail/CVE-2026-128069), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2026-128069 · Whole record: https://cve.day/CVE-2026-128069.json · Rebuilt by cve.day 2026-11-25T22:59:50.757Z
