Loading...
Skip to main content

CVE-2024-22191 — Vulnerability in avo — CVE Details

HIGH

avo vulnerable to stored cross-site scripting (XSS) in key_value field

Published January 16, 2024Updated September 10, 2026Source: osv

Summary

### Summary A **stored cross-site scripting (XSS)** vulnerability was found in the **key_value** field of Avo v3.2.3. This vulnerability could allow an attacker to execute arbitrary JavaScript code in the victim's browser. ### Details The value of the key_value is inserted directly into the HTML code. In the current version of Avo (possibly also older versions), the value is not properly sanitized before it is inserted into the HTML code. This vulnerability can be exploited by an attacker to inject malicious JavaScript code into the key_value field. When a victim views the page containing the malicious code, the code will be executed in their browser. In [avo/fields/common/key_value_component.html.erb]( https://github.com/avo-hq/avo/blob/main/app/components/avo/fields/common/key_value_component.html.erb#L38C21-L38C33) the value is taken in lines **38** and **49** and seems to be interpreted directly as html in lines **44** and **55**. ### PoC ![POC](https://user-images.githubusercontent.com/26570201/295596307-5d4f563e-99c0-4981-a82e-fc42cfd902c5.gif) To reproduce the vulnerability, follow these steps: 1. Edit an entry with a key_value field. 2. Enter the following payload into the value field: ```POC\"> <script>alert( 'XSS in key_value' );</script> <strong>Outside-tag</strong``` 3. Save the entry. 4. Go to the index page and click on the eye icon next to the entry. The malicious JavaScript code will be executed and an alert box will be displayed. _On the show and edit page the alert seems not to pop up, but the strong tag breaks out of the expected html tag_ ### Impact This vulnerability could be used to steal sensitive information from victims that could be used to hijack victims' accounts or redirect them to malicious websites.

Advisory Timeline

  • First published January 16, 2024 (1000 days ago).
  • Last revised September 10, 2026 — 968 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update avo to 2.47.0 or later
gem install avo -v 2.47.0
Bundler
Update avo to 3.2.4 or later
gem install avo -v 3.2.4

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
avo
rubygems
0.2.0, 0.2.1, 0.2.2, 0.2.3 (+341 more)2.47.0
avo
rubygems
3.0.0.beta1, 3.0.0.pre1, 3.0.0.pre10, 3.0.0.pre11 (+59 more)3.2.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

Frequently Asked Questions

What is CVE-2024-22191?
avo vulnerable to stored cross-site scripting (XSS) in key_value field This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.3/10).
How do I check if my project is affected by CVE-2024-22191?
CVE-2024-22191 affects avo. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-22191 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.3

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-ghjv-mh6x-7q6h

Related CVEs

  • CVE-2026-55518
    CRITICAL

    Avo: Missing Authorization in Avo Association Attach Endpoint Allows Unauthorized Relationship Manipulation and Privilege Escalation

  • CVE-2023-34103
    HIGH

    avo vulnerable to Stored XSS (Cross Site Scripting) in html content based fields

  • CVE-2023-34102
    HIGH

    avo possible unsafe reflection / partial DoS vulnerability

  • CVE-2026-42205
    HIGH

    Avo: Broken Access Control Through Unauthorized Execution of Arbitrary Action Classes Across Resources

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

  • CVE-2026-33209
    MEDIUM

    Avo has a XSS vulnerability on `return_to` param

  • CVE-2024-22411
    MEDIUM

    Cross-site scripting (XSS) in Action messages on Avo

  • CVE-2026-53769
    MEDIUM

    Avo: Direct attachment upload endpoint lacks upload authorization and bypasses field-level upload policy

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies