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

CVE-2022-23520
rubyonrails rails html sanitizers

Score6.1 Medium
CVSS 3.1
Exploit probability (EPSS)1.3%
within the next 30 days
CategoryCross-site scripting (XSS)
Published14 December 2022
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, if a user clicks a link, opens a file or similar.

Impact is limited: reading confidential data, modifying data.

The impact can spread beyond the vulnerable component.

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. Prior to version 1.4.4, there is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer due to an incomplete fix of CVE-2022-32209. Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden. This issue is patched in version 1.4.4. All users overriding the allowed tags to include both "select" and "style" should either upgrade or use this workaround: Remove either "select" or "style" from the overridden allowed tags. NOTE: Code is _not_ impacted if allowed tags are overridden using either the :tags option to the Action View helper method sanitize or the :tags option to the instance method SafeListSanitizer#sanitize.

CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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

Affected products

VendorProductVersions
rubyonrailsrails html sanitizers<1.4.4
debiandebian linux10.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