Fastify reply-from path traversal via semicolon path parameters (CVE-2026-127064)

A path traversal vulnerability in @fastify/reply-from before 12.8.4 lets unauthenticated clients escape the intended upstream prefix when the backend strips semicolon path parameters (e.g., Tomcat, Jetty, WildFly, Spring Boot). Fixed in 12.8.4.

Overview

CVE-2026-127064 affects @fastify/reply-from, a Fastify plugin that forwards requests to an upstream HTTP server. In versions before 12.8.4, the buildURL function rejects parent-directory path segments by exact string match. A segment containing a semicolon path parameter (e.g., a dot-dot segment followed by ; and an optional parameter) bypasses this check. The WHATWG URL parser treats it as an ordinary segment, so the base-prefix containment check also passes.

However, backends that strip semicolon path parameters before resolving dot-segments (such as Apache Tomcat, Jetty, WildFly, and Spring Boot) convert the segment back into a parent-directory reference. This allows an unauthenticated client to escape the intended upstream prefix and reach internal paths such as admin or internal API endpoints, including state-changing methods.

Deployments that proxy to Node.js, nginx, or Express upstreams are not affected.

Affected versions

- @fastify/reply-from before 12.8.4

Fixed versions

- @fastify/reply-from 12.8.4 and later

References

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-127064 - OpenJS Foundation advisory: https://cna.openjsf.org/security-advisories.html - GitHub advisory: https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-6mph-mjg3-f943

What to do

1. Identify all services using @fastify/reply-from and check the installed version. 2. Upgrade to @fastify/reply-from 12.8.4 or later immediately. 3. If you cannot upgrade immediately, review your upstream backend configuration and consider blocking or rejecting requests containing semicolon path parameters, especially those targeting internal paths. 4. Verify the vendor advisory (GHSA-6mph-mjg3-f943) before making production changes, and confirm your backend's path normalization behavior. 5. Monitor logs for requests containing semicolon path parameters or attempts to reach internal/admin endpoints, and investigate any anomalies.

Sources