{"id":"CVE-2026-42086","aliases":["CVE-2026-42086","GHSA-ffq5-qpvf-xq7x","PYSEC-2026-105"],"related":[],"kind":"vulnerability","state":"published","title":"OpenC3 COSMOS: Self-XSS in the Command Sender","summary":"OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to version 7.0.0, the Command Sender UI uses an unsafe eval() function on array-like command parameters, which allows a user-supplied payload to execute in the browser when sending a command. This creates a self-XSS risk because an attacker can trigger their own script execution in the victim’s session, if allowed to influence the array parameter input, for example via phishing. If successful, an attacker may read or modify data in the authenticated browser context, including session tokens in local storage. This issue has been patched in version 7.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to version 7.0.0, the Command Sender UI uses an unsafe eval() function on array-like command parameters, which allows a user-supplied payload to execute in the browser when sending a command. This creates a self-XSS risk because an attacker can trigger their own script execution in the victim’s session, if allowed to influence the array parameter input, for example via phishing. If successful, an attacker may read or modify data in the authenticated browser context, including session tokens in local storage. This issue has been patched in version 7.0.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe Command Sender UI uses an unsafe `eval()` function on array-like command parameters, which allows a user-supplied payload to execute in the browser when sending a command. This creates a self-XSS risk because an attacker can trigger their own script execution in the victim’s session, if allowed to influence the array parameter input, for example via phishing. If successful, an attacker may read or modify data in the authenticated browser context, including session tokens in local storage.\n\n### Details\nThe unsafe `eval()`  usage on user-supplied ARRAY parameters happens in `convertToValue` method in [CommandSender.vue](https://github.com/OpenC3/cosmos/blob/main/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue)\n\n### PoC\n1.\tUsing a drop-down form, choose any command that supports ARRAY parameters,\n2.\tInside square brackets “[…]” place a JavaScript code to be executed\n3.\tSend command to CmdTlmServer using dedicated “Send” button \n4.\tObserve JavaScript code being executed in the current browser session context\n\nBelow example uses `INST ARYCMD` to execute simple JavaScript code snippet `alert(“XSS”)`.\n<img width=\"947\" height=\"356\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6fbdb6c9-616a-4268-bbb8-a8a1044437ad\" />\n\n<img width=\"942\" height=\"545\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4df24353-aea0-4aa0-adcf-b7c7e387dc83\" />\n\n### Impact\nLocal JavaScript execution in the user's browser","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenC3 COSMOS proporciona la funcionalidad necesaria para enviar comandos a y recibir datos de uno o más sistemas embebidos. Antes de la versión 7.0.0, la interfaz de usuario (UI) del Enviador de Comandos utiliza una función eval() insegura en parámetros de comando tipo array, lo que permite que una carga útil suministrada por el usuario se ejecute en el navegador al enviar un comando. Esto crea un riesgo de self-XSS porque un atacante puede desencadenar la ejecución de su propio script en la sesión de la víctima, si se le permite influir en la entrada del parámetro array, por ejemplo, a través de phishing. Si tiene éxito, un atacante puede leer o modificar datos en el contexto autenticado del navegador, incluyendo tokens de sesión en el almacenamiento local. Este problema ha sido parcheado en la versión 7.0.0.","source":"nvd"}],"published":"2026-04-22T22:22:28.000Z","modified":"2026-10-26T19:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 7.0.0","status":"affected"}],"vendor":"OpenC3","product":"cosmos","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"RubyGems","package":"openc3","purl":"pkg:gem/openc3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"PyPI","package":"openc3","purl":"pkg:pypi/openc3","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.0.0"},{"status":"affected","version":"7.0.0"},{"status":"affected","version":"7.0.0"},{"status":"affected","version":"7.0.0"}],"vendor":"openc3","product":"cosmos","cpe":"cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"PyPI","package":"openc3","purl":"pkg:pypi/openc3","source":"pysec"}],"references":[{"url":"https://github.com/OpenC3/cosmos/security/advisories/GHSA-ffq5-qpvf-xq7x","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42086","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OpenC3/cosmos","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/openc3/PYSEC-2026-105.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42086.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-04T19:46:44.788Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42086","url":"https://www.cve.org/CVERecord?id=CVE-2026-42086","licence":"CVE Terms of Use","modified":"2026-05-04T19:47:16.828Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ffq5-qpvf-xq7x","url":"https://github.com/advisories/GHSA-ffq5-qpvf-xq7x","licence":"CC-BY-4.0","modified":"2026-05-29T22:00:13.405Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42086","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42086","licence":"Public domain","modified":"2026-10-26T19:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-105","url":"https://osv.dev/vulnerability/PYSEC-2026-105","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:10.269Z"}],"updatedAt":"2026-11-25T22:59:20.540Z","epss":{"score":0.00207,"percentile":0.11463,"date":"2026-12-01T12:00:22.000Z"}}