Home › CVE › JavaScript
CVE-2026-10054 — Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution
One of 2 npm:@theia/core vulnerabilities published together by GitHub Advisory: our article covers all of them.
JavaScriptDevOps / CIWebBrowsersVulnerabilitiesEndpoint securitySeverity breakdown
High · 8.8
An attacker without an account can exploit this over the network if a user is tricked into an action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- yes, someone must click, open or visit something
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-306: Missing Authentication for Critical Function
- CWE-1385: Missing Origin Validation in WebSockets
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| @theia/core (npm) | ≥ 1.8.1, < 1.73.0 | 1.73.0 |
| @theia/terminal (npm) | ≥ 1.8.1, < 1.73.0 | 1.73.0 |
| Eclipse Foundation Eclipse Theia | ≥ 1.8.1, < 1.73.0 | 1.73.0 |
References by type
Vendor advisories
Patches and fixed releases
- github.com/eclipse-theia/theia/commit/1635004f996d7a50fa7fb758563c29a63…
- github.com/eclipse-theia/theia/releases/tag/v1.73.0
Other references
Details
Impact
The Theia browser backend exposes privileged terminal RPC services over WebSocket (/services/shell-terminal, /services/terminals/:id) without service-level authentication or authorization. WebSocket origin validation in @theia/core is fail-open: connections are accepted when the Origin header is missing or when no THEIA_HOSTS allowlist is configured (the default).
Additionally, the Socket.IO integration replaces the trusted Origin header with a client-supplied fix-origin header, which an attacker can control or omit entirely.
A foreign-origin webpage can exploit this to:
- Connect to the
/servicesWebSocket namespace from a cross-origin context - Open the
shell-terminalRPC channel and invoke terminal creation - Connect to the resulting terminal data channel
- Execute arbitrary commands and read their output
This affects both local development setups (drive-by attack when a user visits a malicious page) and hosted/tunneled deployments where the backend WebSocket is reachable without strong external authentication.
Any user running Theia's browser application is impacted, regardless of whether THEIA_HOSTS is configured.
Affected code paths:
packages/core/src/node/hosting/ws-origin-validator.ts: fail-open whenOriginis absent orTHEIA_HOSTSis unsetpackages/core/src/node/messaging/websocket-endpoint.ts: overwritesOriginwith attacker-controllablefix-originheaderpackages/terminal/src/node/terminal-backend-module.ts: registers terminal RPC with no auth gatepackages/terminal/src/node/shell-terminal-server.ts:create()accepts remote-controlled options into PTY spawn
Workarounds
- Set
THEIA_HOSTS: Configure theTHEIA_HOSTSenvironment variable to a strict allowlist of expectedhost:portvalues (e.g.,THEIA_HOSTS=localhost:3000). Note: this alone does not fully mitigate the issue due to thefix-originheader override, but it reduces the attack surface. - Network isolation: Do not expose the Theia backend to untrusted networks. Use a reverse proxy with proper authentication in front of the WebSocket endpoint.
- Disable the terminal service: If terminal functionality is not required, exclude
@theia/terminalfrom your Theia application build.
Resources
Credit
- [ANWAR AYOOB] : Anwar Ayoob (
@blackmaskon Eclipse GitLab, https://github.com/AnwarAyoob on GitHub): finder
Affected
- npm:@theia/core
- npm:@theia/terminal
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-10054?
The Theia browser backend exposes privileged terminal RPC services over WebSocket (/services/shell-terminal, /services/terminals/:id) without service-level authentication or authorization. WebSocket origin validation in @theia/core is fail-open: connections are accepted when the Origin header is missing or when no THEIAHOSTS allowlist is configured (the default). Weakness type: Missing Authentication for Critical Function (CWE-306).
How severe is CVE-2026-10054?
CVE-2026-10054 has a CVSS 3.1 base score of 8.8 (high), from the CNA (eclipse.org). An attacker without an account can exploit this over the network if a user is tricked into an action.
Is CVE-2026-10054 being exploited?
Not as far as is known: CVE-2026-10054 is not in CISA's Known Exploited Vulnerabilities catalog as of December 3, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-10054?
@theia/core (npm) ≥ 1.8.1, < 1.73.0 (fixed in 1.73.0); @theia/terminal (npm) ≥ 1.8.1, < 1.73.0 (fixed in 1.73.0); Eclipse Foundation Eclipse Theia ≥ 1.8.1, < 1.73.0 (fixed in 1.73.0).
How do I fix CVE-2026-10054?
Update to a fixed release: @theia/core (npm) 1.73.0; @theia/terminal (npm) 1.73.0; Eclipse Foundation Eclipse Theia 1.73.0.
Timeline & sources
References
Related vulnerabilities & news
- CVE-2026-108153 — GitLab
- GitLab CE and EE Cross-Site Scripting in Wiki Pages Enables Script Execution (CVE-2026-105739)
- React2Keys Campaign Uses Next.js React2Shell Flaw to Harvest Credentials at Scale
- JetBrains TeamCity XSS Vulnerability in NPM Registry Build Feature
- Cybercriminals Exploit Optimizely Feature to Infect 178 Websites