There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.
CVSS Details
- CVSS 3.1 Base Score: 6.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade ruby-rails-html-sanitizer | Jul 30, 2024 | Mar 30, 2018 |
| Freebsd | — | Upgrade rubygem-rails-html-sanitizer | Mar 25, 2018 | Mar 24, 2018 |
| Suse | — | Upgrade ruby2.5-rubygem-nokogiriUpgrade ruby2.5-rubygem-rails-html-sanitizer | Feb 4, 2022 | Mar 22, 2018 |
| Ubuntu | — | No solution exists | Jun 26, 2025 | Mar 30, 2018 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub