{"id":"CVE-2024-22191","aliases":["CVE-2024-22191","GHSA-ghjv-mh6x-7q6h"],"related":[],"kind":"vulnerability","state":"published","title":"Stored cross-site scripting (XSS) in `key_value` field in Avo","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nA **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.\n\n### Details\nThe 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.\n\nThis 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.\n\nIn [avo/fields/common/key_value_component.html.erb]( https://github.com/avo-hq/avo/blob/main/app/components/avo/fields/common/key_value_component.html.erb#L38C21-L38C33) the value is taken in lines **38** and **49** and seems to be interpreted directly as html in lines **44** and **55**.\n\n### PoC\n\n![POC](https://user-images.githubusercontent.com/26570201/295596307-5d4f563e-99c0-4981-a82e-fc42cfd902c5.gif)\n\n\nTo reproduce the vulnerability, follow these steps:\n\n1. Edit an entry with a key_value field.\n2. Enter the following payload into the value field:\n```POC\\\"> <script>alert( 'XSS in key_value' );</script> <strong>Outside-tag</strong```\n3. Save the entry.\n4. Go to the index page and click on the eye icon next to the entry.\n\nThe malicious JavaScript code will be executed and an alert box will be displayed. \n_On the show and edit page the alert seems not to pop up, but the strong tag breaks out of the expected html tag_\n\n### Impact\nThis vulnerability could be used to steal sensitive information from victims that could be used to hijack victims' accounts or redirect them to malicious websites.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Avo es un framework para crear paneles de administración para aplicaciones Ruby on Rails. Se encontró una vulnerabilidad de cross site scripting (XSS) almacenado en el campo key_value de Avo v3.2.3. Esta vulnerabilidad podría permitir a un atacante ejecutar código JavaScript arbitrario en el navegador de la víctima. El valor de key_value se inserta directamente en el código HTML. En la versión actual de Avo (posiblemente también en versiones anteriores), el valor no se sanitiza adecuadamente antes de insertarlo en el código HTML. Esta vulnerabilidad podría usarse para robar información confidencial de las víctimas que podría usarse para secuestrar las cuentas de las víctimas o redirigirlas a sitios web maliciosos. Avo 3.2.4 incluye una solución para este problema. Se recomienda a los usuarios que actualicen.","source":"nvd"}],"published":"2024-01-16T15:24:00.000Z","modified":"2026-09-10T03:50:00.578Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 3.0.0.beta1, < 3.2.4","status":"affected"},{"version":"< 2.47.0","status":"affected"}],"vendor":"avo-hq","product":"avo","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.0.0.beta1","fixed":"3.2.4","status":"affected"},{"type":"custom","introduced":"0","fixed":"2.4.7.0","status":"affected"}],"vendor":"avo_hq","product":"avo","cpe":"cpe:2.3:a:avo_hq:avo:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0.beta1","status":"affected","fixed":"3.2.4"}],"ecosystem":"RubyGems","package":"avo","purl":"pkg:gem/avo","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.47.0"}],"ecosystem":"RubyGems","package":"avo","purl":"pkg:gem/avo","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.47.0"},{"status":"affected","introduced":"3.0.0","fixed":"3.3.0"}],"vendor":"avohq","product":"avo","cpe":"cpe:2.3:a:avohq:avo:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/avo-hq/avo/security/advisories/GHSA-ghjv-mh6x-7q6h","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/avo-hq/avo/commit/51bb80b181cd8e31744bdc4e7f9b501c81172347","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/avo-hq/avo/commit/fc92a05a8556b1787c8694643286a1afa6a71258","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22191","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/avo-hq/avo","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/avo/CVE-2024-22191.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-01-17T16:56:18.891Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-22191","url":"https://www.cve.org/CVERecord?id=CVE-2024-22191","licence":"CVE Terms of Use","modified":"2024-10-21T12:03:51.403Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ghjv-mh6x-7q6h","url":"https://github.com/advisories/GHSA-ghjv-mh6x-7q6h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.578Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-22191","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22191","licence":"Public domain","modified":"2026-06-17T07:10:54.337Z"}],"updatedAt":"2026-11-25T22:58:36.170Z","epss":{"score":0.00745,"percentile":0.56003,"date":"2026-12-01T12:00:22.000Z"}}