Portkey.ai Gateway versions prior to 1.14.0 contain a Server-Side Request Forgery (SSRF) vulnerability via the x-portkey-custom-host request header. This header is used to determine the destination baseURL for proxy requests without sufficient validation, allowing attackers to make the server perform arbitrary requests. The vulnerability enables potential access to internal network resources, including sensitive endpoints like AWS metadata services. The issue is fixed in version 1.14.0 by implementing strict allow-list validation and blocking requests to non-routable, loopback, private, and metadata IP addresses.