Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend unauthenticated HTTP request to /v1/proxy/*
-
DeliveryInject internal target via x-portkey-custom-host header
-
ExploitGateway forwards request with Authorization headers to internal host
-
ExecutionInternal service returns sensitive response
-
ImpactProvider API keys exfiltrated from response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires network access to the Portkey AI Gateway's /v1/proxy/* route, which is the gateway's standard proxying interface and is expected to be network-accessible in typical deployments. No authentication is required - the CVSS 4.0 vector specifies PR:N (no privileges), confirmed by the description's lack of any authentication gate on this route. The attacker must be able to set custom HTTP headers, specifically x-portkey-custom-host, in requests to this endpoint. The enabling condition is the absence of requestValidator middleware on the /v1/proxy/* route in versions through 1.15.2; with that middleware present, host values would be validated or rejected. Deployments where the gateway is isolated from the internet by network perimeter controls, or where OS-level egress filtering blocks RFC 1918 and link-local addresses, significantly reduce the impact of a successful SSRF attempt, though the header injection vulnerability itself remains present. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H) places this in the high-priority tier: the attack is network-reachable, requires no privileges, no user interaction, and no special attack requirements, with high confidentiality impact on the vulnerable system. EPSS data is absent from available intelligence, limiting probabilistic exploitation forecasting. No CISA KEV listing confirms active exploitation, and no public proof-of-concept code has been identified; however, the vulnerability mechanism requires only a single crafted HTTP request with a custom header - well within reach of any competent attacker who discovers it. The most significant real-world risk is LLM provider API key theft: stolen keys enable fraudulent AI API usage billed to the victim, exfiltration of fine-tuning data, and downstream exposure of any data processed through those provider accounts. Unlike many SSRF findings where exploitation is gated by complex chaining, this flaw is self-contained - the SSRF and credential exfiltration occur in a single unauthenticated request. Risk reduction depends entirely on network egress controls and host header validation, not on authentication hardening or user behavior, meaning all internet-exposed deployments regardless of their identity controls are fully exposed. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a single HTTP request to the publicly accessible /v1/proxy/* endpoint with the x-portkey-custom-host header set to an internal address such as a cloud instance metadata endpoint (169.254.169.254) or an internal credential store. The gateway forwards the request - including Authorization headers containing LLM provider API keys - to the specified internal host, returning the response body to the attacker and exposing the credentials. No public proof-of-concept code has been identified, but exploitation requires only standard HTTP tooling capable of setting custom headers. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
Server-side request forgery in Portkey AI Gateway through version 1.15.2 enables unauthenticated remote attackers to weaponize the gateway as an internal network proxy by injecting arbitrary host values into the x-portkey-custom-host header on the /v1/proxy/* route, which lacks requestValidator middleware. The gateway faithfully forwards outbound requests - including Authorization headers carrying LLM provider API keys - to attacker-specified internal addresses, enabling credential exfiltration and internal service enumeration. No public exploit code has been identified at time of analysis and no CISA KEV listing exists, but the unauthenticated, low-complexity nature of the attack vector makes this an urgent remediation priority for any internet-exposed gateway deployment.
RemediationAI
No patched release version has been independently confirmed at time of analysis; operators should monitor the GitHub repository at https://github.com/Portkey-AI/gateway and issue #1718 at https://github.com/Portkey-AI/gateway/issues/1718 for a fix release and upgrade immediately upon availability. As an immediate compensating control, implement network-level egress filtering on the gateway host to block outbound connections to RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local addresses (169.254.0.0/16), and loopback (127.0.0.0/8); this prevents the SSRF from pivoting to internal services even when the malicious header is accepted, though it does not eliminate the header injection itself. Deploying a reverse proxy or WAF in front of the gateway that strips or rejects the x-portkey-custom-host header before requests reach the application eliminates the injection vector with no functional impact on clients using the gateway's standard provider routing. If the /v1/proxy/* route is not operationally required, disabling it via routing rules or API gateway policy immediately removes the attack surface without affecting other gateway capabilities.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Portkey AI Gateway (portkey-ai/gateway) is an open-source AI API gateway that routes and proxies requests to multiple LLM providers including OpenAI and Anthropic. The vulnerable /v1/proxy/* route is the gateway's primary proxying interface; it is designed to forward provider API calls but, per the CVE description and the referenced source file (src/index.ts at commit 669825c), omits the requestValidator middleware that would sanitize or reject arbitrary x-portkey-custom-host values. CWE-918 (Server-Side Request Forgery) describes this root cause class: the server performs outbound HTTP requests to a destination controlled entirely by attacker-supplied input without validating the target against an allowlist. The CPE string cpe:2.3:a:portkey-ai:gateway:*:*:*:*:*:*:*:* covers all gateway releases through 1.15.2. Because Authorization headers are forwarded along with the proxied request body, the SSRF functions simultaneously as a network pivot and a credential relay - internal services receiving the redirected request see valid provider tokens, enabling API key harvesting without any additional authentication bypass.
Know when Gateway gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable unauthenticated route; no integrity or availability impact described; confidentiality high due to API key exfiltration; scope unchanged as primary impact remains within gateway credential domain.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Portkey AI Gateway through 1.15.2 contains a server-side request forgery vulnerability in the /v1/proxy/* route that lacks requestValidator middleware. Attackers can set the x-portkey-custom-host header to internal addresses and forward requests with Authorization headers to reach internal services and exfiltrate provider API keys.
Executive ViewAI
Portkey AI Gateway versions through 1.15.2 contain a server-side request forgery vulnerability enabling unauthenticated attackers to intercept and redirect LLM API requests, exposing provider credentials and enabling unauthorized internal network access. Organizations with internet-exposed Portkey deployments should assume credential compromise and prioritize immediate remediation to prevent unauthorized access to LLM services and internal infrastructure.
No vendor-released patch identified at time of analysis. Interim mitigations include: implement network segmentation restricting gateway egress to authorized LLM provider endpoints only; deploy WAF or firewall rules rejecting requests with x-portkey-custom-host headers; rotate all LLM provider API keys with monitoring for reuse attempts; enable comprehensive logging and alerting on gateway requests for non-standard host headers; deploy endpoint detection and response (EDR) monitoring on systems accessible from the gateway's network position to detect unauthorized lateral movement; restrict Portkey deployment to private networks pending patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Citrix NetScaler ADC and NetScaler Gateway deployments running builds prior to 14.1-73.37 or 13.1-64.23 (including the c
Unauthenticated command execution in Citrix NetScaler ADC (before 14.1-73.37, before 13.1-64.23, and the corresponding F
A remote, unauthenticated attacker can cause a denial-of-service condition on NetScaler ADC and NetScaler Gateway applia
An insufficient input validation vulnerability exists in Citrix NetScaler ADC and NetScaler Gateway when configured as a
The Gzip file parser in AVG Anti-Virus 10.0.0.1190, Bitdefender 7.2, Command Antivirus 5.2.11.5, Emsisoft Anti-Malware 5
The TAR file parser in AhnLab V3 Internet Security 2011.01.18.00, Avira AntiVir 7.11.1.163, Antiy Labs AVL SDK 2.0.3.7,
The CAB file parser in Dr.Web 5.0.2.03300, Trend Micro HouseCall 9.120.0.1004, Kaspersky Anti-Virus 7.0.0.125, Sophos An
HTTP request smuggling (CWE-444) in Citrix NetScaler ADC and NetScaler Gateway allows unauthenticated, remote attackers
Predictable value generation in Citrix NetScaler ADC and Gateway (CWE-342) lets unauthenticated remote attackers predict
The TAR file parser in Avira AntiVir 7.11.1.163, Antiy Labs AVL SDK 2.0.3.7, Quick Heal (aka Cat QuickHeal) 11.00, Emsis
Remote unauthenticated attackers can trigger a memory overflow in Citrix NetScaler ADC and Gateway, leading to unpredict
A memory overflow in Citrix NetScaler ADC and NetScaler Gateway can be triggered by unauthenticated remote attackers (CV
EUVD-2026-67801
GHSA-rv66-rgwx-xfrj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB