CVE-2026-10055 — @theia/core — CWE-200 · CWE-918
### 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). ### Worka
### 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). ### Worka
🎯 What is this vulnerability?
This vulnerability is a Server-Side Request Forgery (SSRF) flaw in the Theia IDE backend, specifically within the @theia/request and @theia/core packages.
Technical Flaw:
The Theia backend exposes a Remote Procedure Call (RPC) endpoint at /services/request-service. This endpoint is designed to allow the frontend to make HTTP requests on behalf of the user. However, the implementation in BackendRequestFacade (packages/core/src/node/request/backend-request-facade.ts) fails to validate or restrict the destination URL provided by the client.
1. Missing Input Validation: The url parameter passed to the RPC is accepted without any allowlisting, scheme validation (e.g., restricting to http/https), or domain filtering.
2. Server-Side Execution: The backend Node.js process executes the HTTP request using its own network stack. This means the request originates from the server's IP address, bypassing client-side network restrictions.
3. Response Leakage: The full response body is returned to the caller (base64-encoded via RequestContext.compress). This allows an attacker to read the content of internal services that are not directly accessible from the browser.
CWE Mapping:
- CWE-918 (Server-Side Request Forgery): The primary flaw.
- CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor): The response body from internal services is exposed to the attacker.
- PR:L (Privileges Required: Low): The attacker does not need admin rights, but must have a valid user session (authenticated) to access the
/servicesendpoint. In many Theia deployments, any logged-in user can trigger this. - S:C (Scope: Changed): The vulnerable component (Theia backend) and the impacted component (internal network services) are different. The attacker escapes the Theia application's security scope to impact other systems.
- C:H (Confidentiality: High): The attacker can read sensitive data from internal endpoints (e.g., cloud metadata, admin APIs).
- I:L (Integrity: Low): While primarily a read vulnerability, SSRF can sometimes be leveraged to modify state on internal services if they lack proper authentication or CSRF protections.
- Identify Theia: The attacker identifies a target running Theia (e.g., Eclipse Che, OpenShift Dev Spaces, or a custom Theia-based IDE). Fingerprinting can be done by checking for Theia-specific assets (e.g.,
/vscode,/theia, or specific JS bundles) or by observing the/servicesWebSocket/HTTP endpoint behavior. - Authentication: The attacker obtains valid credentials (low-privilege user) or exploits an existing session. Theia typically requires authentication to access the
/servicesendpoint. - Endpoint Verification: The attacker confirms the existence of the
request-serviceRPC by sending a benign request to a public URL (e.g.,http://example.com) and observing the response.
CVSS Vector Analysis (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N):
⚡ Attack Chain
1. Discovery & Reconnaissance
2. Exploitation
The attacker sends a crafted RPC request to the/services endpoint. The exact payload structure depends on the Theia version's RPC protocol (typically JSON-RPC over WebSocket or HTTP POST). Below is an illustrative example of the underlying HTTP request logic that the backend executes.Illustrative PoC (Conceptual):
The attacker triggers the request-service RPC with a malicious URL.
// Conceptual representation of the RPC call from the frontend
// The attacker controls the 'url' parameter
const maliciousUrl = "http://169.254.169.254/latest/meta-data/"; // AWS Metadata Service
const rpcPayload = {
method: "request",
params: {
url: maliciousUrl,
method: "GET",
headers: {}
}
};
// This is sent to the /services endpoint via the Theia messaging protocolCurl Equivalent (Illustrative):
Note: The exact HTTP method and headers for the /services endpoint vary by Theia version (WebSocket vs. HTTP POST). The following is a generic representation of the SSRF trigger.
# Illustrative: Attacker sends a request to the Theia backend's service endpoint
# The 'url' parameter is the SSRF vector
curl -X POST "http://<theia-host>:<port>/services/request-service" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <valid_user_token>" \
-d '{
"url": "http://169.254.169.254/latest/meta-data/iam/security-credentials/",
"method": "GET"
}'Key Exploitation Mechanics:
169.254.169.254 (AWS), 169.254.169.254 (GCP), or 169.254.169.254 (Azure) to steal IAM credentials.http://localhost:8080/admin or http://10.0.0.5:9200 (Elasticsearch) to read internal data.file:// or gopher:// protocols, though standard HTTP/HTTPS is the primary vector.3. Post-Exploitation
🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Upgrade
@theia/core and @theia/request to the latest patched versions.2. Workarounds (If Immediate Upgrade is Not Possible)
169.254.169.254) at the firewall level.
* Use egress filtering to prevent the Theia backend from communicating with internal IP ranges (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) unless explicitly required./services endpoint.
* ModSecurity Example (Illustrative):SecRule REQUEST_URI "@rx /services/request-service" \
"id:100001,phase:1,deny,status:403,msg:'SSRF attempt detected in request-service',log"
SecRule ARGS:url "@rx (169\.254\.169\.254|localhost|127\.0\.0\.1|10\.|172\.1[6-9]\.|172\.2[0-9]\.|172\.3[0-1]\.|192\.168\.)" \
"id:100002,phase:2,deny,status:403,msg:'SSRF internal IP detected',log"Note:* WAF rules are a mitigation, not a fix. They can be bypassed with encoding tricks or DNS rebinding.
request-service is not critical for your use case, consider disabling it via Theia configuration or by patching the backend to reject the RPC.
Technical Note:* This may break frontend functionality that relies on server-side requests.3. Detection
/services/request-service with URLs containing internal IPs, localhost, or cloud metadata addresses.
* Example Log Pattern:POST /services/request-service HTTP/1.1
...
{"url":"http://169.254.169.254/latest/meta-data/","method":"GET"}169.254.169.254 or internal IP ranges.
* Use tools like Zeek, Suricata, or cloud-native network monitoring to detect anomalous outbound connections.
⚠️ Urgency
Recommendation: Treat this as a high-priority vulnerability. The combination of low privileges required, high confidentiality impact, and ease of exploitation makes it a significant risk, especially in cloud environments.
[🤖 CVE Professor AI Security Engine]