Fastify: Path restriction bypass in @fastify/http-proxy (CVE-2026-120213)
The @fastify/http-proxy plugin fails to re-encode parameterized route parameters when using rewritePrefix, allowing remote attackers to inject path separators or delimiters to bypass path restrictions and access unauthorized upstream resources.
CVE search metadata
CVE search record: CVE-2026-120213. Severity: critical. CVSS: 9.1. KEV: no. Product: @fastify/http-proxy (9.0.0 - 11.6.5). Brief: Fastify: Path restriction bypass in @fastify/http-proxy (CVE-2026-120213). Brief link: https://feed.craftedsignal.io/briefs/2026-11-fastify-http-proxy-bypass/
Triage facts
Revision 1- Applicability
- @fastify/http-proxy (9.0.0 - 11.6.5)
- Evidence
- Unknown
- Severity
- Critical
- Action
- Immediate escalation
- Sources
- 1 public source
- Freshness
- Revision 1Nov 2, 11:28 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
The @fastify/http-proxy plugin, versions 9.0.0 through 11.6.5, contains a path-restriction bypass vulnerability. When the plugin is configured with parameterized prefix and rewritePrefix options, it fails to correctly re-encode URL-decoded parameters before they are used in the upstream proxy path. An attacker can inject URL-encoded path separators (e.g., %2f) or query delimiters that decode into active separators on the server, allowing the proxy to direct requests to unintended upstream endpoints. This flaw enables SSRF and authorization bypass in backend services that rely on the proxy to enforce path constraints.
Impact
The vulnerability allows unauthenticated remote attackers to reach upstream locations outside the intended prefix. Observed impacts include path-restriction bypass, server-side request forgery (SSRF), and potential authorization bypass in the proxied service.
Recommendation
Upgrade @fastify/http-proxy to version 11.6.6 or later immediately. There are no available workarounds; patching is required to address the injection flaw.
Immediate actions
Upgrade @fastify/http-proxy to version 11.6.6 or later
Threat Hunt
Identify usage of parameterized rewritePrefix configurations in Fastify deployments
Data: Application configuration files (Fastify registration settings), Web server access logs
Mitigations
Upgrade @fastify/http-proxy to 11.6.6
CVE-2026-120213