All vulnerabilities

npm

CVE-2026-10054

Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution

Severity
High 8.8
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
1.73.0
Exploit chance
0.2% in the next 30 daysHigher than 5% of CVEs. EPSS by FIRST, 2 Dec 2026
Weakness
CWE-1385Missing authentication (CWE-306)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Also known as
GHSA-78g8-vm3p-97c6
Sources
OSV.dev and GitHub

Description

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 /services WebSocket namespace from a cross-origin context
  • Open the shell-terminal RPC 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…

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

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: 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/terminal from your Theia application build.
Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
@theia/corenpm · osv:npm:@theia/core
  • From 1.8.1 before 1.73.0
@theia/terminalnpm · osv:npm:@theia/terminal
  • From 1.8.1 before 1.73.0

About @theia/core

Weekly downloads (npm)
49,758npm, 3 Dec 2026

Vulnerabilities in @theia/core

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for @theia/core

About @theia/terminal

Weekly downloads (npm)
33,852npm, 3 Dec 2026

This is the only vulnerability in @theia/terminal in our list.

References