← Back to search

CVE-2026-120213

9.1 CRITICALpublic exploit available

Published 2026-11-02 · Updated 2026-11-02

AI risk analysis

Summary
The @fastify/http-proxy plugin incorrectly decodes URL parameters in rewritePrefix without re-encoding them, allowing attackers to inject path separators and query delimiters via encoded characters (e.g., %2f) to bypass intended upstream path restrictions and access unintended endpoints.
Exploitability
Exploitation is straightforward for unauthenticated remote attackers; no user interaction or special privileges are required, and public exploits exist.
Blast radius
Successful exploitation enables server-side request forgery (SSRF) or authorization bypass in the upstream service, potentially exposing sensitive internal resources or data.
Detection
Look for upstream requests where the path contains unexpected segments that correspond to decoded URL-encoded characters (e.g., %2f appearing as / in the final upstream path), especially when such paths deviate from the configured rewritePrefix pattern; logs from the proxy or upstream server may show anomalous request paths.
Prioritized remediation
Upgrade @fastify/http-proxy to version 11.6.6 or later.
path-traversalssrfauth-bypasswebnodejs

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

@fastify/http-proxy is a Fastify plugin that proxies HTTP requests to an upstream server under a configured prefix. In versions 9.0.0 through 11.6.5, when an application uses parameterized prefix and rewritePrefix options to pin clients to a fixed upstream path, the plugin substitutes URL-decoded route parameters into rewritePrefix without re-encoding them. A parameter value that encodes a path separator together with a fragment or query delimiter therefore decodes into real separators and delimiters that inject extra upstream path segments and strip the mandatory suffix the rewritePrefix was meant to enforce, without using any dot-dot traversal. An unauthenticated remote attacker can use this to reach upstream locations outside the intended prefix, leading to path-restriction bypass and, depending on the upstream, server-side request forgery or authorization bypass in the proxied service. The issue is fixed in @fastify/http-proxy 11.6.6, and users should upgrade to 11.6.6 or later. There is no workaround other than upgrading.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Weaknesses

CWE-22, CWE-436

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.