Server-side Request Forgery (SSRF) Affecting @portkey-ai/gateway package, versions <1.14.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PORTKEYAIGATEWAY-14157170
  • published2 Dec 2025
  • disclosed1 Dec 2025
  • creditKim SooHyun

Introduced: 1 Dec 2025

NewCVE-2025-66405  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade @portkey-ai/gateway to version 1.14.0 or higher.

Overview

@portkey-ai/gateway is an A fast AI gateway by Portkey

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the x-portkey-custom-host request header, which allows user-supplied values to determine the destination baseURL in the proxy route. An attacker can make unauthorized requests to internal or external systems by supplying crafted headers.

CVSS Base Scores

version 4.0
version 3.1