{"answers":{"affected":"4 open source packages ship an affected version, including avo. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22191 exists.","fix":"Upgrade avo to a fixed version for your release line: 2.47.0 or 3.2.4.","what":"CVE-2024-22191 is a high-severity cross-site scripting vulnerability in avo-hq avo, published on 16 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-22191 and fix it if it is affected.\n\nWhat it is: CVE-2024-22191 is a high-severity cross-site scripting vulnerability in avo-hq avo, published on 16 Jan 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22191 exists.\n\nAffected packages and fixed versions:\n- avo (RubyGems): affected all versions; fixed in 2.47.0\n- avo (RubyGems): affected all versions; fixed in 2.47.0\n- avo (RubyGems): affected from 3.0.0.beta1; fixed in 3.2.4\n- avo (RubyGems): affected from 3.0.0.beta1; fixed in 3.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-22191/ (Markdown: https://insights.sbomify.com/CVE-2024-22191/index.md)","id":"CVE-2024-22191","markdown":"https://insights.sbomify.com/CVE-2024-22191/index.md","name":"CVE-2024-22191","record":{"aliases":["GHSA-ghjv-mh6x-7q6h"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails admin framework","requires_auth":"low_privilege","summary":"Stored XSS in Avo's key_value field allows attackers to execute arbitrary JavaScript, potentially stealing data or hijacking accounts.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"avo","vendor":"avohq"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Stored cross-site scripting (XSS) in `key_value` field in Avo","id":"CVE-2024-22191","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":3,"next":{"headline":"Ursa CL-Signatures Revocation allows verifiers to generate unique identifiers for holders","id":"CVE-2024-22192"},"packages":[{"ecosystem":"RubyGems","fixed":["2.47.0"],"introduced":["0"],"last_affected":[],"package":"avo","purl":null,"source":"GHSA-ghjv-mh6x-7q6h"},{"ecosystem":"RubyGems","fixed":["2.47.0"],"introduced":["0"],"last_affected":[],"package":"avo","purl":"pkg:gem/avo","source":"GHSA-ghjv-mh6x-7q6h"},{"ecosystem":"RubyGems","fixed":["3.2.4"],"introduced":["3.0.0.beta1"],"last_affected":[],"package":"avo","purl":null,"source":"GHSA-ghjv-mh6x-7q6h"},{"ecosystem":"RubyGems","fixed":["3.2.4"],"introduced":["3.0.0.beta1"],"last_affected":[],"package":"avo","purl":"pkg:gem/avo","source":"GHSA-ghjv-mh6x-7q6h"}],"prev":{"headline":"Untrusted search path under some conditions on Windows allows arbitrary code execution","id":"CVE-2024-22190"},"products":["avo"],"published":"2024-01-16","related":[{"cvss_score":8.3,"headline":"Possible unsafe reflection / partial denial of service in avo","id":"CVE-2023-34102","kev_date_added":null,"published":"2023-06-05"},{"cvss_score":7.3,"headline":"Stored XSS (Cross Site Scripting) in html content based fields of avo","id":"CVE-2023-34103","kev_date_added":null,"published":"2023-06-05"},{"cvss_score":6.5,"headline":"Cross site scripting in Action messages on Avo","id":"CVE-2024-22411","kev_date_added":null,"published":"2024-01-16"},{"cvss_score":5.3,"headline":"Avo has a XSS vulnerability on `return_to` param","id":"CVE-2026-33209","kev_date_added":null,"published":"2026-03-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-21","vendors":["avo-hq"]},"summary":"Stored XSS in Avo's key_value field allows attackers to execute arbitrary JavaScript, potentially stealing data or hijacking accounts.","url":"https://insights.sbomify.com/CVE-2024-22191/"}