Medium

OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender

  • Disclosed: 22.04.2026
  • Updated: 11.10.2026 12:19

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”). <img width="947" height="356" alt="image" src="https://github.com/user-attachments/assets/6fbdb6c9-616a-4268-bbb8-a8a1044437ad" />

<img width="942" height="545" alt="image" src="https://github.com/user-attachments/assets/4df24353-aea0-4aa0-adcf-b7c7e387dc83" />

Impact

Local JavaScript execution in the user's browser

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) openc3 < 7.0.0 7.0.0

References

CVSS score 4.6/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Python (PyPI)
Package
openc3
Disclosed
22.04.2026
Updated
11.10.2026 12:19

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-105 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-ffq5-qpvf-xq7x - CC BY 4.0

Vulnerability history: openc3

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (15) in the archive
Total entries
15
First → latest
10.2024 05.2026
Without a fix
7
Exploited in attacks
0

Severity breakdown

  • Critical 5
  • High 5
  • Medium 5

Disclosures per year

  1. 2024: 3
  2. 2025: 7
  3. 2026: 5
Severity:
  1. OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender this entry
    Medium · 4.6 CVE-2026-42086 < 7.0.0 7.0.0
  2. High · 6.5 CVE-2024-46977 < 5.19.0 5.19.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.