CVE-2022-32209
Ruby vulnerability analysis and mitigation

Overview

A possible XSS (Cross-Site Scripting) vulnerability was discovered in Rails::Html::Sanitizer, a library responsible for sanitizing HTML fragments in Rails applications. The vulnerability (CVE-2022-32209) was identified in versions prior to 1.4.3 and allows attackers to inject content if the application developer has overridden the sanitizer's allowed tags to permit both 'select' and 'style' elements (NVD, Debian Security).

Technical details

The vulnerability exists when specific configurations of Rails::Html::Sanitizer are used, particularly when the sanitizer's allowed tags are overridden to include both 'select' and 'style' elements. The issue received a CVSS v3.1 Base Score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating a network-accessible vulnerability requiring user interaction (NVD).

Impact

If exploited, this vulnerability could allow attackers to perform cross-site scripting (XSS) attacks, potentially leading to the injection of malicious content into web applications using the affected Rails::Html::Sanitizer versions. The impact is limited to applications that have specifically overridden the allowed tags configuration (NVD).

Mitigation and workarounds

The vulnerability was patched in version 1.4.3. For users unable to upgrade immediately, a workaround is available: remove either 'select' or 'style' from the overridden allowed tags. It's important to note that 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 (NVD).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
GHSA-96qw-h329-v5rgHIGH7.5
  • JavaScriptJavaScript
  • shakapacker
NoYesJan 08, 2026
CVE-2026-22588MEDIUM6.5
  • RubyRuby
  • spree_api
NoYesJan 08, 2026
GHSA-g9jg-w8vm-g96vMEDIUM4.6
  • JavaScriptJavaScript
  • trix
NoYesDec 31, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management