Saltar al contenido
DayZeroHub
Alta Sin redactarCVSS 8.8GHSA-78g8-vm3p-97c6CVE-2026-10054

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

@theia/core

Aviso preliminar: se publicó de inmediato con los datos originales de las fuentes, sin redacción editorial. En breve se reemplaza por una versión redactada y revisada.

Resumen

CVE-2026-10054: vulnerabilidad de severidad alta (CVSS 8.8) en @theia/core.

Qué ocurre

Descripción original de la fuente (en inglés): ### 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`**…

Por qué importa

Severidad alta, CVSS 8.8.

Productos y versiones afectados

@theia/core >= 1.8.1, < 1.73.0 (corregido en 1.73.0); @theia/terminal >= 1.8.1, < 1.73.0 (corregido en 1.73.0)

ProductoVersionesCorregido en
@theia/core>= 1.8.1, < 1.73.01.73.0
@theia/terminal>= 1.8.1, < 1.73.01.73.0

Acción recomendada por la fuente

Actualizar a una versión corregida: 1.73.0.

Corregido en: 1.73.0

Información tomada de la fuente o del proveedor. Verificala en el enlace original antes de actuar.

Fuentes y referencias

Debilidades (CWE): CWE-306, CWE-1385

Historial de cambios relevantes

  1. Publicado

    Aviso preliminar publicado.