Vulnerability GHSA-2m57-xxmh-v696
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
localhostor 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-servicepath 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-serviceconnection handler)packages/core/src/node/request/backend-request-facade.ts(BackendRequestFacade.requestforwards the caller-supplied URL without validation)dev-packages/request/src/common-request-service.ts(definesREQUEST_SERVICE_PATHand theRequestServiceinterface)packages/core/src/browser/frontend-application-module.tsandpackages/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:
- [email protected] (Ziyue), https://zyy0530.github.io/, GH user Zyy0530
- [email protected] (Chenchen), https://7thparkk.github.io/, GH user 7thParkk
- [email protected] (Strick), https://str1ckl4nd.github.io/, GH user Str1ckl4nd
- [email protected] (Liyi), https://lzhou1110.github.io/, GH user lzhou1110
- [email protected] (Maurice), http://maurice.busystar.org/, GH user mauriceng98
Related Vulnerabilities
Other vulnerabilities affecting the same packages