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:
- ziyue0530@gmail.com (Ziyue), https://zyy0530.github.io/, GH user Zyy0530
- 2459406270@qq.com (Chenchen), https://7thparkk.github.io/, GH user 7thParkk
- cshe0476@uni.sydney.edu.au (Strick), https://str1ckl4nd.github.io/, GH user Str1ckl4nd
- liyi.zhou@sydney.edu.au (Liyi), https://lzhou1110.github.io/, GH user lzhou1110
- chng0012@uni.sydney.edu.au (Maurice), http://maurice.busystar.org/, GH user mauriceng98
References
Impact
A client that can reach the standard browser-facing
/servicesmessaging endpoint can invoke the/services/request-serviceRPC with an attacker-controlled URL. The Theia backend performs the HTTP request server-side viaBackendRequestFacade(packages/core/src/node/request/backend-request-facade.ts) and returns the full response body, base64-encoded viaRequestContext.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:
localhostor other backend-reachable hosts that are intentionally not exposed to the browser network boundary.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
/servicesconnection 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:
/services/request-servicepath on the websocket/JSON-RPC channel.Resources
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)Credits
Joint disclosure. Credit all five reporters:
References