GHSA-ffq5-qpvf-xq7x

Suggest an improvement
Source
https://github.com/advisories/GHSA-ffq5-qpvf-xq7x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-ffq5-qpvf-xq7x/GHSA-ffq5-qpvf-xq7x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-ffq5-qpvf-xq7x
Aliases
  • CVE-2026-42086
Published
2026-04-22T22:22:28Z
Modified
2026-05-05T16:06:08.132675Z
Severity
  • 4.6 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
Summary
OpenC3 COSMOS is Vulnerable to Self-XSS Through the Command Sender
Details

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

Database specific
{
    "nvd_published_at": "2026-05-04T18:16:30Z",
    "severity": "MODERATE",
    "github_reviewed_at": "2026-04-22T22:22:28Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed": true
}
References

Affected packages

RubyGems / openc3

Package

Name
openc3
Purl
pkg:gem/openc3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.0.0

Affected versions

5.*
5.0.6
5.0.7
5.0.8
5.0.9
5.0.10
5.0.11
5.1.0
5.1.1
5.2.0
5.3.0
5.4.0
5.4.1
5.4.2
5.4.3.pre.beta0
5.5.0.pre.beta0
5.5.0
5.5.1
5.5.2.pre.beta0
5.5.2
5.6.0
5.6.1
5.7.0
5.7.2
5.8.0
5.8.1
5.9.0
5.9.1
5.10.0
5.10.1
5.11.0
5.11.1
5.11.2
5.11.3
5.12.0
5.13.0
5.14.0
5.14.1
5.14.2
5.15.0
5.15.1
5.15.2
5.16.0
5.16.1
5.16.2
5.17.0
5.17.1
5.18.0
5.19.0
5.20.0
6.*
6.0.0
6.0.1
6.0.2
6.1.0
6.2.0
6.2.1
6.3.0
6.4.0
6.4.1
6.4.2
6.5.0
6.5.1
6.6.0
6.7.0
6.8.0
6.8.1
6.9.0
6.9.1
6.9.2
6.10.0
6.10.1
6.10.2
6.10.3
6.10.4
6.10.5
6.10.6
7.*
7.0.0.pre.rc1
7.0.0.pre.rc2
7.0.0.pre.rc3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-ffq5-qpvf-xq7x/GHSA-ffq5-qpvf-xq7x.json"