CVE-2025-66405 Portkey.ai Gateway: Server-Side Request Forgery (SSRF) in Custom Host
MediumCVSS 6.9
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| portkey gateway | < 1.14.0 | 1.14.0 | Fixed |
| Portkey-AI gateway(npm) | < 1.14.0 | 1.14.0 | Fixed |
| Portkey-AI gateway | = < 1.14.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Portkey-AI gateway(npm) | < 1.14.0 | 1.14.0 |
| Portkey-AI gateway | = < 1.14.0 | No fix listed |
| portkey gateway | < 1.14.0 | 1.14.0 |
References
- https://github.com/Portkey-AI/gateway/security/advisories/GHSA-hhh5-2cvx-vmfp vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Portkey-AI/gateway/pull/1372 issue-tracking patch
- https://github.com/Portkey-AI/gateway/commit/b5a7825ba5f4e6918deb32d9969899ce2229a885 patch
- github.com
- github.com product