GHSA-2m57-xxmh-v696

Suggest an improvement
Source
https://github.com/advisories/GHSA-2m57-xxmh-v696
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-2m57-xxmh-v696/GHSA-2m57-xxmh-v696.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2m57-xxmh-v696
Aliases
Published
2026-12-03T01:14:23Z
Modified
2026-12-03T01:30:03Z
Severity
  • 8.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N CVSS Calculator
Summary
Eclipse Theia: SSRF and internal response disclosure via request-service RPC
Details

Impact

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 by untrusted users, a remote attacker can:

  • Send HTTP requests to localhost or other backend-reachable hosts that are intentionally not exposed to the browser network boundary.
  • Read responses from internal HTTP endpoints (administrative interfaces, cloud instance metadata services, internal APIs, etc.).
  • Probe internal network topology by observing response status codes and timing.

The vulnerability is reachable through the standard Theia frontend/backend connection; no special configuration is required for the affected RPC to be exposed.

Who is impacted: Any Theia-based product or deployment where the backend's /services connection is reachable by users who should not be able to send arbitrary HTTP requests from the backend host (for example, multi-tenant or publicly-reachable Theia deployments, or single-user deployments where the backend port is exposed).

Workarounds

Until a patched release is available, deployers can mitigate exposure by some combination of:

  • Restrict network access to the Theia backend. Do not expose the backend port to untrusted networks; place it behind authentication or a trusted reverse proxy.
  • Block the RPC at the proxy layer. If a reverse proxy is in front of Theia, reject or filter messages targeting the /services/request-service path on the websocket/JSON-RPC channel.
  • Treat all users with access to the Theia connection as trusted. This vulnerability is most impactful in multi-tenant or anonymous-access deployments; single-user local development is lower risk.
  • Run the Theia backend with restricted egress. Use host- or network-level firewall rules to deny the backend process outbound access to localhost and internal subnets.

Resources

  • Affected code:
    • packages/core/src/node/backend-application-module.ts (registers the /services/request-service connection handler)
    • packages/core/src/node/request/backend-request-facade.ts (BackendRequestFacade.request forwards the caller-supplied URL without validation)
    • dev-packages/request/src/common-request-service.ts (defines REQUEST_SERVICE_PATH and the RequestService interface)
    • packages/core/src/browser/frontend-application-module.ts and packages/core/src/browser/request/browser-request-service.ts (frontend side that exercises the same RPC)
  • CWE-918: https://cwe.mitre.org/data/definitions/918.html

Credits

Joint disclosure. Credit all five reporters:

Database specific
{
    "cwe_ids":  [
        "CWE-200",
        "CWE-918"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-03T01:14:23Z",
    "nvd_published_at":  "2026-07-03T11:16:27Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @theia/core

Package

Name
@theia/core
View open source insights on deps.dev
Purl
pkg:npm/%40theia/core

Affected ranges

Type
SEMVER
Events
Introduced
1.26.0
Fixed
1.73.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-2m57-xxmh-v696/GHSA-2m57-xxmh-v696.json"

npm / @theia/request

Package

Name
@theia/request
View open source insights on deps.dev
Purl
pkg:npm/%40theia/request

Affected ranges

Type
SEMVER
Events
Introduced
1.26.0
Fixed
1.73.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-2m57-xxmh-v696/GHSA-2m57-xxmh-v696.json"