CVE-2024-53989: Ruby rails html sanitizer · rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails
Affects ruby-rails-html-sanitizerSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium · fixed in 1.6.1 : update ruby-rails-html-sanitizer when convenient.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 43% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10ruby-rails-html-sanitizerpkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSruby-rails-html-sanitizerpkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10ruby-rails-html-sanitizerpkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-rails-html-sanitizerpkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSruby-rails-html-sanitizerpkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSruby-rails-html-sanitizerpkg:deb/ubuntu/ruby-rails-html-sanitizer?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags for the the "noscript" element. This vulnerability is fixed in 1.6.1.
References
- ubuntu.com/security/CVE-2024-53989 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-53989 (opens in a new tab)
- github.com/rails/rails-html-sanitizer/commit/16251735e36ebdc302e2f90f2a39cad56879414f (opens in a new tab)
- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-rxv5-gxqc-xx8g (opens in a new tab)