Vulnerabilities in pkg:npm/@theia/terminal

PACKAGE
Advisory Identifier: GHSA-78g8-vm3p-97c6
Advisory Summary

CVE-2026-10054 is a HIGH (CVSS 8.8) theia websocket origin validation bypass vulnerability (CWE-306: Missing Authentication for Critical Function) affecting @theia/core libraries in the npm ecosystem. The issue involves theia websocket origin validation bypass enables terminal command execution. Remediation is available by upgrading affected packages to version 1.73.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@theia/terminal

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@theia/terminal. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-78g8-vm3p-97c6 CVE-2026-10054 HIGH Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution

CVE-2026-10054 at a Glance

CVE Identifier CVE-2026-10054
GHSA Identifier GHSA-78g8-vm3p-97c6
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product @theia/core
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-10054

To remediate this vulnerability, upgrade all affected @theia/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@theia/core fixed: 1.73.0
npm install @theia/core@1.73.0
@theia/terminal fixed: 1.73.0
npm install @theia/terminal@1.73.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @theia/core

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-10054, inspect your project dependencies using npm:

npm ls @theia/core

Analyze the terminal output to locate any version of @theia/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.73.0), your application is affected.

Note: The npm ls @theia/core command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In @theia/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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`**: 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. ### Resources - [Eclipse Foundation Security Handbook: Embargoes](https://eclipse-csi.github.io/security-handbook/vulnerabilities/embargoes.html#developing-a-fix-under-an-embargo) - [Theia `THEIA_HOSTS` documentation](https://github.com/eclipse-theia/theia/tree/master/packages/core#environment-variables) ### Credit - [ANWAR AYOOB] : Anwar Ayoob (`@blackmask` on Eclipse GitLab, https://github.com/AnwarAyoob on GitHub): finder

CVE-2026-10054 Affected @theia/core Versions

2 component(s)
Fixed Versions:
1.73.0
Product / Package Ecosystem Affected Versions Fixed Version
@theia/core
npm
≥ 1.8.1
< 1.73.0
1.73.0
@theia/terminal
npm
≥ 1.8.1
< 1.73.0
1.73.0

References

Frequently Asked Questions

What is CVE-2026-10054?
CVE-2026-10054 is a security vulnerability in @theia/core involving Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution under CWE-306: Missing Authentication for Critical Function.
Which @theia/core versions are affected?
Affected versions include releases prior to 1.73.0 across affected packages: @theia/core, @theia/terminal.
What version fixes CVE-2026-10054?
Upgrading to 1.73.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @theia/core affected?
Yes, @theia/core is affected in releases prior to 1.73.0. Upgrade your dependency to 1.73.0 or later.
Is @theia/terminal affected?
Yes, @theia/terminal is affected in releases prior to 1.73.0. Upgrade your dependency to 1.73.0 or later.
What is the CVSS score of CVE-2026-10054?
CVE-2026-10054 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-10054?
CVE-2026-10054 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check npm dependencies for CVE-2026-10054?
Run the dependency tree command: 'npm ls @theia/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-78g8-vm3p-97c6",
  "modified" : "2026-12-03T01:03:58Z",
  "published" : "2026-12-03T01:03:58Z",
  "aliases" : [ "CVE-2026-10054" ],
  "summary" : "Theia WebSocket Origin Validation Bypass Enables Terminal Command Execution",
  "details" : "### Impact\n\nThe 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).\n\nAdditionally, the Socket.IO integration replaces the trusted `Origin` header with a client-supplied `fix-origin` header, which an attacker can control or omit entirely.\n\nA foreign-origin webpage can exploit this to:\n1. Connect to the `/services` WebSocket namespace from a cross-origin context\n2. Open the `shell-terminal` RPC channel and invoke terminal creation\n3. Connect to the resulting terminal data channel\n4. Execute arbitrary commands and read their output\n\nThis 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.\n\nAny user running Theia's browser application is impacted, regardless of whether `THEIA_HOSTS` is configured.\n\n**Affected code paths:**\n- `packages/core/src/node/hosting/ws-origin-validator.ts`: fail-open when `Origin` is absent or `THEIA_HOSTS` is unset\n- `packages/core/src/node/messaging/websocket-endpoint.ts`: overwrites `Origin` with attacker-controllable `fix-origin` header\n- `packages/terminal/src/node/terminal-backend-module.ts`: registers terminal RPC with no auth gate\n- `packages/terminal/src/node/shell-terminal-server.ts`: `create()` accepts remote-controlled options into PTY spawn\n\n### Workarounds\n\n- **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.\n- **Network isolation**: Do not expose the Theia backend to untrusted networks. Use a reverse proxy with proper authentication in front of the WebSocket endpoint.\n- **Disable the terminal service**: If terminal functionality is not required, exclude `@theia/terminal` from your Theia application build.\n\n### Resources\n\n- [Eclipse Foundation Security Handbook: Embargoes](https://eclipse-csi.github.io/security-handbook/vulnerabilities/embargoes.html#developing-a-fix-under-an-embargo)\n- [Theia `THEIA_HOSTS` documentation](https://github.com/eclipse-theia/theia/tree/master/packages/core#environment-variables)\n\n### Credit\n\n- [ANWAR AYOOB] : Anwar Ayoob (`@blackmask` on Eclipse GitLab, https://github.com/AnwarAyoob on GitHub):  finder",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@theia/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.8.1"
      }, {
        "fixed" : "1.73.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@theia/terminal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.8.1"
      }, {
        "fixed" : "1.73.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-theia/theia/security/advisories/GHSA-78g8-vm3p-97c6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-10054"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-theia/theia/commit/1635004f996d7a50fa7fb758563c29a63b900f2d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/eclipse-theia/theia"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/eclipse-theia/theia/releases/tag/v1.73.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1385", "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T01:03:58Z",
    "nvd_published_at" : "2026-07-03T11:16:26Z"
  }
}