CVE-2024-22191
Ruby vulnerability analysis and mitigation

Overview

A stored cross-site scripting (XSS) vulnerability was discovered in the key_value field of Avo, a framework for creating admin panels for Ruby on Rails apps. The vulnerability affects Avo versions 3.2.3 and 2.46.0, and was disclosed on January 16, 2024. This security flaw is tracked as CVE-2024-22191 (NVD, GitHub Advisory).

Technical details

The vulnerability stems from improper sanitization of input in the key_value field, where values are inserted directly into the HTML code without proper sanitization. The severity of this vulnerability has been assessed with different CVSS v3.1 scores: NIST rates it as MEDIUM (5.4) with vector AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, while GitHub rates it as HIGH (7.3) with vector AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N. The vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation (NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in the victim's browser. The potential impact includes theft of sensitive information that could be used to hijack victims' accounts or redirect them to malicious websites (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Avo versions 3.2.4 and 2.47.0. The fix implements proper sanitization of the key_value field content using DOMPurify (Avo Patch). Users are strongly advised to upgrade to these patched versions (GitHub Advisory).

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
  • action_text-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