HIGHCVSS 8.8Vulnerability

CVE-2026-10054

### 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: 1. Connect to the `/services` WebSocket namespace from a cross-origin context 2. Open the `shell-terminal` RPC channel and invoke terminal creation 3. Connect to the resulting terminal data channel 4. 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 when `Origin` is absent or `THEIA_HOSTS` is unset - `packages/core/src/node/messaging/websocket-endpoint.ts`: overwrites `Origin` with attacker-controllable `fix-origin` header - `packages/terminal/src/node/terminal-backend-module.ts`: registers terminal RPC with no auth gate - `packages/terminal/src/node/shell-terminal-server.ts`: `create()` accepts remote-controlled options into PTY spawn ### Workarounds - **Set `THEIA_HOSTS`**: Configure the `THEIA_HOSTS` environment variable to a strict allowlist of expected `host:port` values (e.g., `THEIA_HOSTS=localhost:3000`). Note: this alone does not fully mitigate the issue due to the `fix-origin` header override, but it reduces the attack surface. - **Network isolation**:

Properties

Summary
Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution
Severity
high
Epss score
0.0021
Cvss score
8.8
Retrieved at
2026-12-04T15:02:57+00:00
Ghsa published
2026-12-03T01:03:58Z
Source url
https://github.com/advisories/GHSA-78g8-vm3p-97c6
Ghsa updated
2026-12-03T01:04:00Z
Ghsa id
GHSA-78g8-vm3p-97c6
Last source
FIRST EPSS
Cve id
CVE-2026-10054
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
First seen by Signal
2026-12-03T02:46:47+00:00
Name
CVE-2026-10054
Is ghsa only
false
Epss percentile
0.11805

Related Entities (6)

AFFECTS (2)

→[Software]npm/@theia/core
→[Software]npm/@theia/terminal

VULNERABLE_TO (2)

←[Software]npm/@theia/terminal
←[Software]npm/@theia/core

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-10054 (CVSS 8.8) — Ninja Signal Threat Intelligence | Ninja Signal