Summary
CVE-2026-85666 is an unauthenticated Server-Side Request Forgery (SSRF) vulnerability affecting OGX, an OpenAI-compatible inference/agent server published as the ogx PyPI package by ogx-ai. The flaw resides in the POST /v1/responses endpoint, where MCP (Model Context Protocol) tool definitions accept a server_url parameter that the server fetches without validating the destination. The vulnerability carries a CVSS v4.0 base score of 8.7 (High) and a CVSS v3.1 base score of 7.5 (High), and requires no authentication or user interaction to exploit.
Technical details
- Root cause: When processing MCP tool definitions submitted to the
/v1/responsesAPI, OGX takes the attacker-suppliedserver_urlfield and issues a server-side HTTP request to it without validating or restricting the destination (no allow-list, no blocking of internal/link-local/loopback ranges). - Trigger conditions: An attacker sends a crafted request to the OpenAI-compatible
POST /v1/responsesendpoint, defining an MCP tool whoseserver_urlpoints to an internal or cloud-internal address. - Attack vector: Network — the endpoint is reachable remotely and requires no prior authentication (PR:N) or user interaction (UI:N).
- Impact: Because the request is made server-side, an attacker can pivot into internal networks, reach services not otherwise exposed to the internet, and query cloud instance metadata services (e.g., to retrieve temporary cloud credentials). Per the CVSS vectors, the primary impact is a high loss of confidentiality (C:H), with no direct impact on integrity or availability.
Affected software
ogx(PyPI package, ogx-ai) — versions 0 through 1.3.1 (all releases up to and including 1.3.1)- Versions after 1.3.1 are reported as not affected
Severity
- CVSS v3.1: 7.5 (High) —
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS v4.0: 8.7 (High) —
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CWE-918: Server-Side Request Forgery (SSRF)
Mitigation and recommended actions
- Immediate: Upgrade
ogxto a version newer than 1.3.1, where this issue is fixed. - If patching is not immediately possible:
- Restrict outbound network access from the OGX server host so it cannot reach internal-only address ranges, loopback addresses, or the cloud metadata endpoint (e.g., 169.254.169.254).
- Place the
/v1/responsesendpoint behind an authenticating reverse proxy or API gateway and restrict access to trusted callers only, until the underlying MCP toolserver_urlhandling is patched. - Enforce hardened cloud metadata service protections (e.g., IMDSv2 or equivalent token-based metadata access) on hosts running OGX to reduce the impact of any SSRF-driven metadata queries.
- Monitor outbound requests from the OGX service for connections to internal or metadata IP ranges as an indicator of exploitation attempts.

