7.3 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
NONE
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
5.5 Medium
AI Score
Confidence
High
0.001 Low
EPSS
Percentile
20.2%
A stored cross-site scripting (XSS) vulnerability was found in thekey_value field of Avo v3.2.3. 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 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 and49and seems to be interpreted directly as html in lines44and55.
To reproduce the vulnerability, follow these steps:
POC\"> <script>alert( 'XSS in key_value' );</script> <strong>Outside-tag</strong
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
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.
CPE | Name | Operator | Version |
---|---|---|---|
avo | eq | 2.24.0 | |
avo | eq | 2.27.2.pre.pr1606 | |
avo | eq | 2.14.3.pre.3.jsbundling | |
avo | eq | 1.22.2 | |
avo | eq | 2.3.1.pre.5 | |
avo | eq | 0.4.10 | |
avo | eq | 0.3.2 | |
avo | eq | 1.2.5 | |
avo | eq | 3.1.4 | |
avo | eq | 2.11.1.pre.2 |
github.com/avo-hq/avo
github.com/avo-hq/avo/commit/51bb80b181cd8e31744bdc4e7f9b501c81172347
github.com/avo-hq/avo/commit/fc92a05a8556b1787c8694643286a1afa6a71258
github.com/avo-hq/avo/security/advisories/GHSA-ghjv-mh6x-7q6h
github.com/rubysec/ruby-advisory-db/blob/master/gems/avo/CVE-2024-22191.yml
nvd.nist.gov/vuln/detail/CVE-2024-22191
7.3 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
NONE
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
5.5 Medium
AI Score
Confidence
High
0.001 Low
EPSS
Percentile
20.2%