SecurityContext

CVE-2026-128069: rails-html-sanitizer - Cross-Site Scripting

  • Cve: CVE-2026-128069
  • Name: rails-html-sanitizer - Cross-Site Scripting
  • 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.
  • Impact: Attackers can cause cross-site scripting when sanitized output retains script elements or event-handler attributes under a stricter policy.
  • Remediation: Upgrade to version 1.7.2 or later.
  • Vulnerability type: race_condition
  • Vulnerability impact: client_script_exec
  • Requirements: Multithreaded process with concurrent sanitize calls using different tags/attributes options
  • Labels source: securitycontext
  • Severity: medium
  • Cvss score: 4.7
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00216
  • Epss percentile: 0.11904
  • Assignee: [email protected]
  • Published at: 2026-11-13T18:17:34Z
  • Age in days: 11
  • Modified at: 2026-11-18T13:17:25Z
  • References total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-128069
  • Nvd status: received
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://github.com/rails/rails-html-sanitizer/commit/15f764c3563d5dd9b97ad32eaa7454577ccec4b9
https://github.com/rails/rails-html-sanitizer/issues/228
https://github.com/rails/rails-html-sanitizer/releases/tag/v1.7.2
https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-h7wh-q2qr-458c

Projects

RepositoryLink kindsIndexedUrl
rails/rails-html-sanitizercommit, fix, issues, package, releases, security_advisoryyes/v1/repositories/rails/rails-html-sanitizer

Index

  • Repositories: 185
  • Repositories high signal: 100
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts