Vulnerability · Published Dec 1, 2025 · Assigned by GitHub_M
CVE-2025-66405Portkey.ai Gateway: Server-Side Request Forgery (SSRF) in Custom Host
Medium 6.9
In plain English
A medium-severity server-side request forgery in gateway from Portkey-AI. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Portkey.ai Gateway is a blazing fast AI Gateway with integrated guardrails. Prior to 1.14.0, the gateway determined the destination baseURL by prioritizing the value in the x-portkey-custom-host request header. The proxy route then appends the client-specified path to perform an external fetch. This can be maliciously used by users for SSRF attacks. This vulnerability is fixed in 1.14.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @portkey-ai/gateway | 1.14.0 | GHSA-hhh5-2cvx-vmfp |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Portkey-AI | gateway | < 1.14.0 |
Weakness: CWE-918 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
References
- https://github.com/Portkey-AI/gateway/security/advisories/GHSA-hhh5-2cvx-vmfp x_refsource_CONFIRM
- https://github.com/Portkey-AI/gateway/pull/1372 x_refsource_MISC
- https://github.com/Portkey-AI/gateway/commit/b5a7825ba5f4e6918deb32d9969899ce2229a885 x_refsource_MISC