SSRF in Portkey AI Gateway
Portkey AI Gateway versions 1.14.0 through 1.15.2 are vulnerable to unauthenticated SSRF via the x-portkey-custom-host header, allowing attackers to access internal loopback and Docker host services.
CVE search metadata
CVE search record: CVE-2026-110719. Severity: high. CVSS: 7.2. KEV: no. Product: AI Gateway (1.14.0-1.15.2). Brief: SSRF in Portkey AI Gateway. Brief link: https://feed.craftedsignal.io/briefs/2026-10-portkey-ai-ssrf/
Portkey AI Gateway versions 1.14.0 through 1.15.2 contain a server-side request forgery (SSRF) vulnerability due to improper host validation logic within the isValidCustomHost function. When the TRUSTED_CUSTOM_HOSTS configuration variable is left unset, the application incorrectly trusts localhost-style hostnames. An unauthenticated attacker can exploit this flaw by sending a crafted HTTP request to a /v1 endpoint, specifically utilizing the x-portkey-custom-host header. By targeting loopback addresses or internal Docker host services through this header, an attacker can coerce the gateway to perform unauthorized requests on their behalf and return the resulting data from internal services back to the attacker. This vulnerability poses a significant risk to the confidentiality and integrity of internal infrastructure that is otherwise not exposed to the public internet.
Impact
Successful exploitation allows an unauthenticated attacker to interact with internal services that are only accessible from the loopback interface or within the Docker environment where the AI Gateway is hosted. This can lead to unauthorized information disclosure, interaction with internal management APIs, or potential secondary exploitation of internal microservices that assume all incoming requests are originating from trusted internal sources.
Recommendation
- Upgrade Portkey AI Gateway to a version beyond 1.15.2 immediately.
- If upgrading is not immediately possible, explicitly configure the
TRUSTED_CUSTOM_HOSTSenvironment variable to restrict the gateway to a strict allowlist of known-safe, non-internal hostnames. - Audit access logs for requests containing the
x-portkey-custom-hostheader to identify potential exploitation attempts directed at internal loopback (127.0.0.1) or private Docker host IP addresses.
Immediate actions
Upgrade Portkey AI Gateway to version 1.15.3 or higher.
Threat Hunt
Search web access logs for HTTP requests containing the header 'x-portkey-custom-host' with values targeting 127.0.0.1, localhost, or internal docker gateway IPs.
Data: webserver access logs
Mitigations
Configure the TRUSTED_CUSTOM_HOSTS environment variable to explicitly define allowed hostnames.
CVE-2026-110719