@fastify/http-proxy is vulnerable to Path Traversal
91
CVE Score
Critical
Path Traversal
Before the fix, fastifyHttpProxy spliced URL-decoded route parameters into rewritePrefix without re-encoding them. An unauthenticated client of an application that pins clients to a fixed upstream path with a parameterized prefix and rewritePrefix could send a value like admin%2fmaster-keys%23 to inject extra upstream path segments or strip the mandatory suffix, reaching upstream locations outside the intended path without any .. traversal. The fix re-encodes substituted parameters with encodeURIComponent (and #/? in wildcard values), so decoded separators can no longer alter the forwarded destination.
Upgrade the @fastify/http-proxy package to 11.6.6 or later.
You are affected if you are using a version that falls within the vulnerable range and configure a parameterized prefix with rewritePrefix so route parameters are substituted into the upstream path, reachable by unauthenticated clients.
9.0.0 - 11.6.5
Fixed in 11.6.6@fastify/http-proxy is vulnerable to Path Traversal in versions 9.0.0 - 11.6.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.