Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2024-53985
rubyonrails rails html sanitizers

Score2.3 Low
CVSS 4.0
Exploit probability (EPSS)1.0%
within the next 30 days
CategoryCross-site scripting (XSS)
Published2 December 2024
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, with user interaction.

Weakness type: Cross-site scripting (XSS).

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official 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 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The 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 with both "math" and "style" elements or both both "svg" and "style" elements. This vulnerability is fixed in 1.6.1.

CVSS: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Weakness: CWE-79 – Cross-site scripting (XSS)

Affected products

VendorProductVersions
rubyonrailsrails html sanitizers1.6.0

Sources

Latest in the same category

  • CVE-2026-140097 Critical 9.1
    Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-138277 Low 2.3
    Improper neutralization of input during web page generation ('cross-site scripting') vulnerability in Apache Commons BCEL. This only happens when you're using Class2HTML to generate webpages for…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-140006 Medium 5.4
    minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-139994 Medium 4.7
    React Router is a router for React. From 7.11.0 until 7.18.4 and 8.4.0, react Router's unstable RSC Data mode and RSC Framework mode render redirects containing an attacker-controlled redirect destination into…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-125083 High 7.6
    The vault-auth plugin in Kong Gateway Enterprise and Kong AI Gateway does not escape the access token in the HashiCorp Vault KV request URL, allowing a Consumer to read older secret versions and authenticate with…
    Cross-site scripting (XSS) · 30 November 2026
  • CVE-2026-139988 Medium 5.1
    Foliovision FV Player 8 through 8.2.1 contains a stored cross-site scripting vulnerability in get_popup_code() that allows authenticated Contributor+ attackers to inject script via the popup and end_action_value…
    Cross-site scripting (XSS) · 30 November 2026