CVE-2024-22411: Avo Cross-Site Scripting Vulnerability
MODERATECVE-2024-22411 is a MODERATE (CVSS 6.5) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Avo libraries in the RubyGems ecosystem. The issue involves cross-site scripting (xss) in action messages on avo. Remediation is available by upgrading affected packages to version 3.3.0, 2.47.0.
CVE-2024-22411 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L).
How to Fix CVE-2024-22411
To remediate this vulnerability, upgrade all affected Avo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade avo to 3.3.0
Upgrade avo to 2.47.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for avo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-22411, inspect your project dependencies for Avo:
inspect dependencies for avo
Analyze the terminal output to locate any version of Avo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Avo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-22411 Affected Avo Versions
2 component(s)References
Frequently Asked Questions
What is CVE-2024-22411?
Which Avo versions are affected?
What version fixes CVE-2024-22411?
Is avo affected?
What is the CVSS score of CVE-2024-22411?
What CWE is associated with CVE-2024-22411?
How can I check RubyGems dependencies for CVE-2024-22411?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g8vp-2v5p-9qfh",
"modified" : "2024-01-19T17:23:41Z",
"published" : "2024-01-17T22:34:03Z",
"aliases" : [ "CVE-2024-22411" ],
"summary" : "Cross-site scripting (XSS) in Action messages on Avo",
"details" : "Avo is a framework to create admin panels for Ruby on Rails apps. In Avo 3 pre12, any HTML inside text that is passed to `error` or `succeed` in an `Avo::BaseAction` subclass will be rendered directly without sanitization in the toast/notification that appears in the UI on Action completion. A malicious user could exploit this vulnerability to trigger a cross site scripting attack on an unsuspecting user. This issue has been addressed in the 3.3.0 and 2.47.0 releases of Avo. Users are advised to upgrade.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "avo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0.beta1"
}, {
"fixed" : "3.3.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "avo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.47.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/avo-hq/avo/security/advisories/GHSA-g8vp-2v5p-9qfh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-22411"
}, {
"type" : "WEB",
"url" : "https://github.com/avo-hq/avo/commit/51bb80b181cd8e31744bdc4e7f9b501c81172347"
}, {
"type" : "WEB",
"url" : "https://github.com/avo-hq/avo/commit/fc92a05a8556b1787c8694643286a1afa6a71258"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/avo-hq/avo"
}, {
"type" : "WEB",
"url" : "https://github.com/avo-hq/avo/releases/tag/v2.47.0"
}, {
"type" : "WEB",
"url" : "https://github.com/avo-hq/avo/releases/tag/v3.3.0"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/avo/CVE-2024-22411.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-17T22:34:03Z",
"nvd_published_at" : "2024-01-16T22:15:46Z"
}
}