Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @theia/terminal
  4. ›
  5. CVE-2026-10054

CVE-2026-10054: Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution

December 3, 2026

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

References

  • github.com/advisories/GHSA-78g8-vm3p-97c6
  • github.com/eclipse-theia/theia/commit/1635004f996d7a50fa7fb758563c29a63b900f2d
  • github.com/eclipse-theia/theia/releases/tag/v1.73.0
  • github.com/eclipse-theia/theia/security/advisories/GHSA-78g8-vm3p-97c6
  • nvd.nist.gov/vuln/detail/CVE-2026-10054

Code Behaviors & Features

Detect and mitigate CVE-2026-10054 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.8.1 before 1.73.0

Fixed versions

  • 1.73.0

Solution

Upgrade to version 1.73.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1385: Missing Origin Validation in WebSockets
  • CWE-306: Missing Authentication for Critical Function

Source file

npm/@theia/terminal/CVE-2026-10054.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 03 Dec 2026 12:17:31 +0000.