Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-hhh5-2cvx-vmfp

Опубликовано: 02 дек. 2025
Источник: github
Github: Прошло ревью
CVSS4: 6.9

Описание

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

Summary

The gateway determines 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 (CWE-918) attack

Impact

This vulnerability can be exploited to force the server to make requests to arbitrary hosts on the internal network. This could allow an attacker to exfiltrate sensitive data, for instance, by accessing the AWS metadata service.

Patches

The issue is patched in 1.14.0 (https://github.com/Portkey-AI/gateway/pull/1372)

The vulnerability resides within the gateway's request processing function which handles the x-portkey-custom-host header. This parameter was passed directly or with insufficient validation/sanitization to an internal HTTP request function.

The fix (v1.14.0) implements a robust allow-list policy:

  1. All custom host inputs are now strictly validated to ensure the resulting URI points only to trusted, expected external services.

  2. The implementation now explicitly blocks requests to non-routable IP addresses, loopback addresses, private networks and standard metadata endpoints.

Credit

This vulnerability was discovered and reported responsibly by @im-soohyun. We thank them for their adherence to coordinated vulnerability disclosure principles.

References

https://cwe.mitre.org/data/definitions/918.html

Пакеты

Наименование

@portkey-ai/gateway

npm
Затронутые версииВерсия исправления

< 1.14.0

1.14.0

EPSS

Процентиль: 18%
0.00055
Низкий

6.9 Medium

CVSS4

Дефекты

CWE-918

Связанные уязвимости

nvd
2 месяца назад

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.

EPSS

Процентиль: 18%
0.00055
Низкий

6.9 Medium

CVSS4

Дефекты

CWE-918