OpenC3 COSMOS: Self-XSS in the Command Sender
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OpenC3 | cosmos | before 7.0.0 | 7.0.0 | Patch available | CNA |
| — | openc3 (RubyGems) | before 7.0.0 | 7.0.0 | Patch available | GHSA-ffq5-qpvf-xq7x |
| — | openc3 (PyPI) | before 7.0.0 | 7.0.0 | Patch available | GHSA-ffq5-qpvf-xq7x |
- cosmos VendorOpenC3 Affected before 7.0.0 Fixed in 7.0.0 Patch available CNA
- openc3 (RubyGems) Vendor— Affected before 7.0.0 Fixed in 7.0.0 Patch available GHSA-ffq5-qpvf-xq7x
- openc3 (PyPI) Vendor— Affected before 7.0.0 Fixed in 7.0.0 Patch available GHSA-ffq5-qpvf-xq7x
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:* | before 7.0.0 | Vulnerable | OpenC3 |
| cpe:2.3:a:openc3:cosmos:7.0.0:rc1:*:*:open_source:*:*:* | 7.0.0 rc1 | Vulnerable | OpenC3 |
| cpe:2.3:a:openc3:cosmos:7.0.0:rc2:*:*:open_source:*:*:* | 7.0.0 rc2 | Vulnerable | OpenC3 |
| cpe:2.3:a:openc3:cosmos:7.0.0:rc3:*:*:open_source:*:*:* | 7.0.0 rc3 | Vulnerable | OpenC3 |
- cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:* Versions before 7.0.0 Vulnerable ·OpenC3
- cpe:2.3:a:openc3:cosmos:7.0.0:rc1:*:*:open_source:*:*:* Versions 7.0.0 rc1 Vulnerable ·OpenC3
- cpe:2.3:a:openc3:cosmos:7.0.0:rc2:*:*:open_source:*:*:* Versions 7.0.0 rc2 Vulnerable ·OpenC3
- cpe:2.3:a:openc3:cosmos:7.0.0:rc3:*:*:open_source:*:*:* Versions 7.0.0 rc3 Vulnerable ·OpenC3
Remediation
- Fix · CNA cosmos (OpenC3) Fixed in 7.0.0
- Fix · GHSA-ffq5-qpvf-xq7x openc3 (RubyGems) Fixed in 7.0.0 Advisory →
- Fix · GHSA-ffq5-qpvf-xq7x openc3 (PyPI) Fixed in 7.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42086
- 2026-10-03 Alias added: GHSA-ffq5-qpvf-xq7x
References
More OpenC3 Cosmos vulnerabilities
- TI-2025-20781 Weak password requirements in OpenC3 COSMOS v6.0.0 allow attackers to bypass authentication via a brute force attack. CVSS 3.1CRITICAL 9.8
- TI-2025-20780 OpenC3 COSMOS before v6.0.2 was discovered to contain hardcoded credentials for the Service Account. CVSS 3.1CRITICAL 9.8
- TI-2025-20779 A remote code execution (RCE) vulnerability in the Plugin Management component of OpenC3… CVSS 3.1CRITICAL 9.8
- TI-2025-20778 An issue in the /script-api/scripts/ endpoint of OpenC3 COSMOS before 6.1.0 allows… CVSS 3.1CRITICAL 9.1
- TI-2026-30456 OpenC3 COSMOS: Administrative Actions via the Script Runner Tool CVSS 3.1CRITICAL 9.6
- TI-2026-30455 OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base CVSS 3.1CRITICAL 9.6
Sources
- CVE-2026-42086 · CVE Program
- CVE-2026-42086 · NVD
- FIRST EPSS
- GHSA-ffq5-qpvf-xq7x · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences