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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2025-12-01T22:25:36.311Z
- Modified: 2026-10-18T18:10:00.100Z
- Also known as: GHSA-hhh5-2cvx-vmfp
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- Portkey-AI gateway: < 1.14.0
- @portkey-ai/gateway (npm): before 1.14.0
- portkey gateway: before 1.14.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Portkey-AI/gateway/security/advisories/GHSA-hhh5-2cvx-vmfp> (vendor-advisory, web)
- <https://github.com/Portkey-AI/gateway/pull/1372> (issue-tracking, web)
- <https://github.com/Portkey-AI/gateway/commit/b5a7825ba5f4e6918deb32d9969899ce2229a885> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66405> (advisory)
- <https://github.com/Portkey-AI/gateway> (package)

## Sources

- CVE List: [CVE-2025-66405](https://www.cve.org/CVERecord?id=CVE-2025-66405), CVE Terms of Use, modified 2025-12-02
- GitHub Advisory Database: [GHSA-hhh5-2cvx-vmfp](https://github.com/advisories/GHSA-hhh5-2cvx-vmfp), CC-BY-4.0, modified 2025-12-02
- NVD: [CVE-2025-66405](https://nvd.nist.gov/vuln/detail/CVE-2025-66405), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-66405 · Whole record: https://cve.day/CVE-2025-66405.json · Rebuilt by cve.day 2026-11-25T22:59:08.152Z
