Advisories for Npm/@Theia/Core package

2026

Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution

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 …

Eclipse Theia: SSRF and internal response disclosure via request-service RPC

A client that can reach the standard browser-facing /services messaging endpoint can invoke the /services/request-service RPC with an attacker-controlled URL. The Theia backend performs the HTTP request server-side via BackendRequestFacade (packages/core/src/node/request/backend-request-facade.ts) and returns the full response body, base64-encoded via RequestContext.compress, back to the caller. Because the destination URL is neither validated nor allowlisted, this is a classic Server-Side Request Forgery (SSRF). In deployments where the Theia service connection is reachable …