{"id":"CVE-2026-128069","published":"2026-11-13T17:17:47Z","modified":"2026-11-18T12:45:06Z","title":"rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls","vendor":"rails","product":"rails-html-sanitizer","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00216,"percentile":0.12088,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails-html-sanitizer/issues/228","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2","tags":["x_refsource_MISC"]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":2.42},{"name":"CVSS severity","points":3.29}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"rails","product":"rails-html-sanitizer","versions":["< 1.7.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-18T12:44:39.599432Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"rails-html-sanitizer","vulnerableRanges":["<1.7.2"],"patched":["1.7.2"],"from":["GHSA-h7wh-q2qr-458c"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-125593","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-53989","published":"2024-12-02","fixed":"1.6.1","kev":false},{"cve":"CVE-2026-73648","published":"2026-08-13","fixed":"1.7.1","kev":false,"link":{"from":"CVE-2026-73648","to":"CVE-2026-128069","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:rails-html-sanitizer","fromFixed":"1.7.1","toFixed":"1.7.2","daysApart":92}]}},{"cve":"CVE-2026-128068","published":"2026-11-13","fixed":"1.7.2","kev":false},{"cve":"CVE-2026-128069","published":"2026-11-13","fixed":"1.7.2","kev":false}],"package":"RubyGems:rails-html-sanitizer"}}