CVE-2025-66405
MEDIUM 6.9CVSS 4.0Portkey.ai Gateway: Server-Side Request Forgery (SSRF) in Custom Host
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.
- Published
- 1 Dec 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-hhh5-2cvx-vmfp
- Sources
- NVDJSONOSV GHSA-hhh5-2cvx-vmfpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | portkey | gatewaycpe:2.3:a:portkey:gateway:*:*:*:*:*:*:*:* |
< 1.14.0 | 1.14.0 |
| OSV | npm | @portkey-ai/gateway | < 1.14.0 | 1.14.0 |
References
- https://github.com/Portkey-AI/gateway/commit/b5a7825ba5f4e6918deb32d9969899ce2229a885 · Patch, WEB
- https://github.com/Portkey-AI/gateway/pull/1372 · Issue Tracking, WEB
- https://github.com/Portkey-AI/gateway/security/advisories/GHSA-hhh5-2cvx-vmfp · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66405 · ADVISORY
- https://github.com/Portkey-AI/gateway · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 1 Dec 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Dec 2025)