CVE-2026-42086
JSON

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 packageVersionsReported by
OpenC3 cosmos< 7.0.0, before 7.0.0, 7.0.0CVE List, NVD
openc3 (RubyGems)before 7.0.0GitHub Advisory Database
openc3 (PyPI)before 7.0.0GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHub4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
PyPA Advisory Database4.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-79

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
  1. Using a drop-down form, choose any command that supports ARRAY parameters,
  2. Inside square brackets “[…]” place a JavaScript code to be executed
  3. Send command to CmdTlmServer using dedicated “Send” button
  4. 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

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

SourceRecordLicence
CVE ListCVE-2026-42086 changed 2026-05-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-ffq5-qpvf-xq7x changed 2026-05-29CC-BY-4.0
NVDCVE-2026-42086 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-105 changed 2026-05-20CC-BY-4.0