CVE-2025-66405 Details
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.
A server-side request forgery (SSRF) vulnerability has been identified in Portkey.ai Gateway versions prior to 1.14.0. The issue arises because the gateway prioritizes the 'x-portkey-custom-host' request header to determine the destination base URL for external fetches. This lack of proper validation allows users to manipulate the header and direct requests to arbitrary internal hosts, potentially accessing sensitive data from services like the AWS metadata service.
Users can upgrade to Portkey.ai Gateway version 1.14.0 or later, where this vulnerability has been patched. The update includes enhanced validation for the 'x-portkey-custom-host' header, ensuring that only trusted hosts are allowed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| portkey gateway | < 1.14.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 20, 2026 | Reanalysis | [email protected] |
| Feb 6, 2026 | Initial Analysis | [email protected] |
| Dec 1, 2025 | New CVE Received | [email protected] |