Path traversal in Fastify-http-proxy - CVE-2026-120213

 

Path traversal in Fastify-http-proxy - CVE-2026-120213

Published: November 3, 2026


Vulnerability identifier: #VU158830
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-120213
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass upstream path restrictions and potentially access or modify protected resources in the proxied service.

The vulnerability exists due to failure to re-encode URL-decoded route parameters in the rewritePrefix handling of @fastify/http-proxy when processing requests with parameterized prefix and rewritePrefix options. A remote attacker can supply an encoded slash combined with an encoded fragment or query delimiter to inject upstream path segments and discard a mandatory suffix, potentially bypassing authorization or enabling server-side request forgery depending on the upstream service. For example, with prefix: '/tenants/:tenantId/public-avatar' and rewritePrefix: '/:tenantId/public-avatar', /tenants/admin%2fmaster-keys%23/public-avatar forwards GET /admin/master-keys, while /tenants/admin%2fusers%3ftruncate=/public-avatar forwards GET /admin/users.


Affected software

Fastify-http-proxy

How to mitigate CVE-2026-120213

Install security update from vendor's website.

Fastify-http-proxy - update to 11.6.6

External References

Related Security Bulletins