Fastify published an advisory on November 2, 2026, identifying an upstream path escape in @fastify/reply-from and naming version 12.8.1 as the fix. The advisory for CVE-2026-117518 lists versions below 12.8.1 as affected and assigns high severity with a Common Vulnerability Scoring System score of 8.2. It lists no workaround. Sources: Fastify
According to maintainers, buildURL() checked forward-slash dot-segments before URL normalization, allowing backslash dot-segments and encoded equivalents to bypass validation and escape the intended upstream prefix. They say version 12.8.1 normalizes backslashes before constructing the URL. It also rejects segments resolving to single or double dots, control characters and ambiguous whitespace. Sources: Fastify
Maintainers say unauthenticated requests can reach unintended upstream HTTP endpoints in applications composing restricted upstream paths or relying on Fastify route guards before forwarding. The path traversal impact depends on proxy routing and available endpoints; the advisory establishes unintended HTTP endpoint access, not arbitrary filesystem access. Real-world exploitation status and affected deployment counts remain unverified. Sources: Fastify, Vuln Scoop
The @fastify/http-proxy manifest on its main branch identifies version 11.6.6 and declares @fastify/reply-from as a production dependency with the range ^12.6.2. Applications can therefore include reply-from transitively, but the declared range does not establish which version an application installed. Sources: Fastify
The proxy documentation says prefix selects incoming routes and is removed during forwarding. The rewritePrefix setting supplies the replacement upstream prefix and defaults to an empty string. Paths embedded in the upstream URL are ignored, so developers must use rewritePrefix to specify the target base path. Sources: Fastify
What to do
- Inspect manifests, lockfiles and resolved dependency trees for @fastify/reply-from below 12.8.1, including transitive copies through @fastify/http-proxy in every workspace and production artifact.
- Check compatibility for the selected versions: current @fastify/http-proxy documentation requires Fastify 5.x and directs Fastify 4.x users to @fastify/http-proxy v9.x.
- Update direct or parent dependencies to resolve a fixed @fastify/reply-from version, 12.8.1 or later, then refresh lockfiles, rebuild and verify every deployed copy.
- Review prefix, rewritePrefix, custom handlers and parameterized prefixes to confirm the resulting upstream destination stays within the intended path.
- Test @fastify/reply-from 12.8.1 in isolation for normal forwarding, authentication hooks, prefix rewriting and rejection of raw and encoded traversal requests, observing destinations at the test upstream. Sources: Fastify