4.6medium
OpenC3 COSMOS: Self-XSS in the Command Sender
- Severity
- 4.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-ffq5-qpvf-xq7xPYSEC-2026-105
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenC3 cosmos | < 7.0.0, before 7.0.0, 7.0.0 | CVE List, NVD |
| openc3 (RubyGems) | before 7.0.0 | GitHub Advisory Database |
| openc3 (PyPI) | before 7.0.0 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| PyPA Advisory Database | 4.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
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.
Details
The unsafe eval() usage on user-supplied ARRAY parameters happens in convertToValue method in CommandSender.vue
PoC
- Using a drop-down form, choose any command that supports ARRAY parameters,
- Inside square brackets “[…]” place a JavaScript code to be executed
- Send command to CmdTlmServer using dedicated “Send” button
- Observe JavaScript code being executed in the current browser session context
Below example uses INST ARYCMD to execute simple JavaScript code snippet alert(“XSS”).
image
Impact
Local JavaScript execution in the user's browser
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42086 changed 2026-05-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ffq5-qpvf-xq7x changed 2026-05-29 | CC-BY-4.0 |
| NVD | CVE-2026-42086 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-105 changed 2026-05-20 | CC-BY-4.0 |