CVE-2026-42086: OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender
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.
Published Apr 22, 2026 · Updated May 29, 2026
Affected packages
openc3
- Ecosystem
- RubyGems
- Affected
- < 7.0.0
- Fixed in
- 7.0.0
- Check
bundle info openc3
openc3
- Ecosystem
- PyPI
- Affected
- >= 0, < 7.0.0
- Fixed in
- 7.0.0
- Check
pip show openc3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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”).
Impact
Local JavaScript execution in the user's browser
Credited to ctrlsill.
References
- https://github.com/OpenC3/cosmos/security/advisories/GHSA-ffq5-qpvf-xq7x
- https://nvd.nist.gov/vuln/detail/CVE-2026-42086
- https://github.com/pypa/advisory-database/tree/main/vulns/openc3/PYSEC-2026-105.yaml
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42086.yml
- https://github.com/advisories/GHSA-ffq5-qpvf-xq7x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-77601
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
high8.8Sep 23, 2026CVE-2026-77602
OpenC3 COSMOS: Authenticated remote code execution via the user-writable config overlay (table definitions, cmd/tlm definitions, and script suites)
critical9.9Sep 23, 2026CVE-2026-42087
OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database
critical9.6Apr 23, 2026GHSA-2wvh-87g2-89hr
OpenC3 COSMOS: Permissions Bypass Provides User Access to Unassigned Administrative Actions via Script Runner Tool
critical9.6Apr 23, 2026CVE-2026-42084
OpenC3 COSMOS: Hijacked session token can be used to reset password for persistence
high8.1Apr 22, 2026CVE-2026-42085
OpenC3 COSMOS allows arbitrary writes to plugins directory via path-traversed config filenames
medium4.3Apr 22, 2026
