# CVE-2024-22191: Stored cross-site scripting (XSS) in \`key\_value\` field in Avo

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.87% (percentile 56, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-ghjv-mh6x-7q6h
- **Published:** 2024-01-16T15:24:00.000Z
- **Modified:** 2026-09-10T03:50:00.578Z

## Who should check

- Projects that depend on RubyGems package avo (\>= 3.0.0.beta1, \< 3.2.4)
- Anyone running avo-hq avo \>= 3.0.0.beta1, \< 3.2.4; \< 2.47.0

## Description

Avo is a framework to create admin panels for Ruby on Rails apps. A stored cross-site scripting (XSS) vulnerability was found in the key\_value field of Avo v3.2.3 and v2.46.0. This vulnerability could allow an attacker to execute arbitrary JavaScript code in the victim's browser. 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 could be used to steal sensitive information from victims that could be used to hijack victims' accounts or redirect them to malicious websites. Avo 3.2.4 and 2.47.0 include a fix for this issue. Users are advised to upgrade.

## Affected and fixed versions

- RubyGems `avo`: affected \>= 3.0.0.beta1, \< 3.2.4; fixed 3.2.4, 2.47.0 (osv)
- avo-hq avo: \>= 3.0.0.beta1, \< 3.2.4; \< 2.47.0 (cvelist)

## Mitigation

- Upgrade avo to one of 3.2.4, 2.47.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-22191. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-22191.md
Affected: avo >= 3.0.0.beta1, < 3.2.4
Fixed in: 3.2.4, 2.47.0

Steps:
1. Search this machine and project for avo (RubyGems), avo-hq avo: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-22191 being exploited?

There is no confirmed exploitation: CVE-2024-22191 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.87% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-22191?

High: CVSS 7.3 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-22191?

avo \>= 3.0.0.beta1, \< 3.2.4.

### Is there a fix for CVE-2024-22191?

Yes. Fixed in 3.2.4, 2.47.0. Upgrade avo to one of 3.2.4, 2.47.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-22191?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/avo-hq/avo/security/advisories/GHSA-ghjv-mh6x-7q6h>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-22191>
- patch: <https://github.com/avo-hq/avo/commit/51bb80b181cd8e31744bdc4e7f9b501c81172347>
- patch: <https://github.com/avo-hq/avo/commit/fc92a05a8556b1787c8694643286a1afa6a71258>
- other: <https://github.com/avo-hq/avo>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/avo/CVE-2024-22191.yml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-22191>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-ghjv-mh6x-7q6h> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-22191> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-22191>
