A malicious web page can reach Eclipse Theia's terminal WebSocket and run commands
Eclipse Theia can run as a browser-based development environment connected to a backend that provides files, terminals and extension services. CVE-2026-10054 exposes one of the most sensitive parts of that architecture: a cross-origin page can connect to the terminal service and invoke commands without a service-level login.
The affected @theia/core and @theia/terminal packages begin at version 1.8.1. Version 1.73.0 is fixed. The advisory scores the vulnerability 8.8 and requires user interaction from the victim's browser.
The broken boundary
The backend exposes terminal RPC over WebSocket at /services/shell-terminal and /services/terminals/:id. Those services do not authenticate or authorize the caller themselves. WebSocket origin validation is fail-open when the Origin header is absent or when THEIA_HOSTS is not configured, which is the default.
Theia's Socket.IO integration also replaces the trusted origin with a client-controlled fix-origin header. A foreign page can therefore open the WebSocket namespace, create a shell terminal and read its output. The attacker does not need to guess a password. The user only needs to visit the malicious page while the Theia backend is reachable from the browser.
Affected deployment types
Local browser deployments are exposed to drive-by attacks because a page on the internet can target the localhost backend. Hosted or tunneled deployments expose the same path when the WebSocket endpoint is reachable without strong external authentication. Reverse proxies that authenticate only the initial HTML page can leave the WebSocket path open unless they apply the same policy to upgrades and terminal channels.
The advisory states that any user running Theia's browser application is affected, whether or not THEIA_HOSTS is configured. Setting THEIA_HOSTS reduces the attack surface but does not fully mitigate the flaw because of the header override. Network isolation and removal of the terminal extension are stronger temporary measures.
Consequences
A successful attack runs commands with the privileges of the Theia backend. The attacker can read the workspace, inspect environment variables and cloud credentials, alter source code and use the host as a pivot. Terminal output gives immediate confirmation and feedback, so exploitation does not require a separate callback.
Theia is commonly operated by developers with access to repositories and deployment tooling. That makes the reachable backend more valuable than a generic web application. Teams should treat a suspicious cross-origin terminal session as a possible credential and source-code compromise, then check the workspace and deployment paths for changes.
Remediation
Upgrade Theia components to 1.73.0 or later. If an update cannot be applied immediately, disable @theia/terminal, prevent browser access to the backend from untrusted origins and place an authenticated reverse proxy in front of both HTTP and WebSocket routes. Do not rely on THEIA_HOSTS alone.
After patching, search proxy logs for WebSocket upgrades to /services, especially those with unusual origin headers or no origin. Review terminal process history and repository changes around suspicious sessions. Rotate credentials accessible from the environment if there is evidence of unauthorized terminal creation.
Top comments (0)