← Back to CVE Explorer

CVE-2026-42086

Full vulnerability record from the local CVENow database.

Description

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.

Severity
MEDIUM
CVSS score
4.6 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-05-04 18:16:30.667000
Last modified
2026-10-26 19:10:00.163000
View original CVE JSON
{
  "id": "CVE-2026-42086",
  "sourceIdentifier": "[email protected]",
  "published": "2026-05-04T18:16:30.667",
  "lastModified": "2026-10-26T19:10:00.163",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "OpenC3 COSMOS proporciona la funcionalidad necesaria para enviar comandos a y recibir datos de uno o más sistemas embebidos. Antes de la versión 7.0.0, la interfaz de usuario (UI) del Enviador de Comandos utiliza una función eval() insegura en parámetros de comando tipo array, lo que permite que una carga útil suministrada por el usuario se ejecute en el navegador al enviar un comando. Esto crea un riesgo de self-XSS porque un atacante puede desencadenar la ejecución de su propio script en la sesión de la víctima, si se le permite influir en la entrada del parámetro array, por ejemplo, a través de phishing. Si tiene éxito, un atacante puede leer o modificar datos en el contexto autenticado del navegador, incluyendo tokens de sesión en el almacenamiento local. Este problema ha sido parcheado en la versión 7.0.0."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "OpenC3",
          "product": "cosmos",
          "versions": [
            {
              "version": "< 7.0.0",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N",
          "baseScore": 4.6,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "LOW",
          "userInteraction": "REQUIRED",
          "scope": "UNCHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.1,
        "impactScore": 2.5
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-05-04T19:46:44.788122Z",
          "id": "CVE-2026-42086",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-79"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:*",
              "versionEndExcluding": "7.0.0",
              "matchCriteriaId": "286B983F-D46F-46E4-8EEA-FFA6506A005B"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:openc3:cosmos:7.0.0:rc1:*:*:open_source:*:*:*",
              "matchCriteriaId": "38B72355-49A3-4D2F-BFDB-EE53C9E2C7AD"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:openc3:cosmos:7.0.0:rc2:*:*:open_source:*:*:*",
              "matchCriteriaId": "13E3A0EA-1085-4505-80BB-C0B133EC3498"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:openc3:cosmos:7.0.0:rc3:*:*:open_source:*:*:*",
              "matchCriteriaId": "3826B062-66B3-42BB-80C3-A1CD76AD038A"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/OpenC3/cosmos/security/advisories/GHSA-ffq5-qpvf-xq7x",
      "source": "[email protected]",
      "tags": [
        "Exploit",
        "Vendor Advisory"
      ]
    },
    {
      "url": "https://github.com/OpenC3/cosmos/security/advisories/GHSA-ffq5-qpvf-xq7x",
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "tags": [
        "Exploit",
        "Vendor Advisory"
      ]
    }
  ]
}