@fastify/reply-from is vulnerable to Path Traversal
82
CVE Score
High
Path Traversal
Before the fix, buildURL() in @fastify/reply-from rejected dot-segments only when delimited by forward slashes, so a request path using backslash dot-segments (raw \ or %5c) passed the check and the WHATWG URL parser normalized it to /, letting an unauthenticated client escape the upstream prefix an app scopes reply.from() to and reach other upstream endpoints. Versions 12.5.0 and 12.6.1 reject any .. and are not affected; the bypass regressed in 12.6.2 when the check became segment-based. The fix normalizes backslashes before splitting the path and rejects any . or .. segment, plus control characters and ambiguous whitespace.
Upgrade the @fastify/reply-from package to 12.8.1 or later.
You are affected if you are using a version that falls within the vulnerable range and use reply.from() to proxy a path that includes request-supplied segments able to contain backslash dot-segments.
12.6.2 - 12.8.0
Fixed in 12.8.1@fastify/reply-from is vulnerable to Path Traversal in versions 12.6.2 - 12.8.0.
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.