CVE-2024-22191 — Vulnerability in avo — CVE Details
avo vulnerable to stored cross-site scripting (XSS) in key_value field
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.87%). Schedule for your next planned update.
Does your project use an affected avo version?
Paste your Gemfile.lock to check it for CVE-2024-22191 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
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 the value is taken in lines 38 and 49 and seems to be interpreted directly as html in lines 44 and 55.
PoC
To reproduce the vulnerability, follow these steps:
- Edit an entry with a key_value field.
- Enter the following payload into the value field:
POC\"> <script>alert( 'XSS in key_value' );</script> <strong>Outside-tag</strong - Save the entry.
- 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 (1045 days ago).
- Last revised September 10, 2026 — 968 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install avo -v 2.47.0
gem install avo -v 3.2.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
References
- https://github.com/avo-hq/avo/security/advisories/GHSA-ghjv-mh6x-7q6hWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-22191ADVISORY
- https://github.com/avo-hq/avo/commit/51bb80b181cd8e31744bdc4e7f9b501c81172347WEB
- https://github.com/avo-hq/avo/commit/fc92a05a8556b1787c8694643286a1afa6a71258WEB
- https://github.com/avo-hq/avoPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/avo/CVE-2024-22191.ymlWEB
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. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-22191 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 56.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-55518CRITICAL
Avo: Missing Authorization in Avo Association Attach Endpoint Allows Unauthorized Relationship Manipulation and Privilege Escalation
- CVE-2023-34103HIGH
avo vulnerable to Stored XSS (Cross Site Scripting) in html content based fields
- CVE-2023-34102HIGH
avo possible unsafe reflection / partial DoS vulnerability
- CVE-2026-42205HIGH
Avo: Broken Access Control Through Unauthorized Execution of Arbitrary Action Classes Across Resources
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
- CVE-2026-33209MEDIUM
Avo has a XSS vulnerability on `return_to` param
- CVE-2024-22411MEDIUM
Cross-site scripting (XSS) in Action messages on Avo
- CVE-2026-53769MEDIUM
Avo: Direct attachment upload endpoint lacks upload authorization and bypasses field-level upload policy