BuildRiot
Sign in

BackendSource: Fastify

Fastify names @fastify/reply-from 12.8.1 as fix for upstream path escape

Fastify’s November 2, 2026 advisory says a path traversal flaw can expose unintended upstream HTTP endpoints. Developers should check direct and transitive dependencies for @fastify/reply-from versions below 12.8.1.

Fastify logo
Cover: BuildRiot

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

  1. 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.
  2. 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.
  3. 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.
  4. Review prefix, rewritePrefix, custom handlers and parameterized prefixes to confirm the resulting upstream destination stays within the intended path.
  5. 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

Why it matters

Maintainers say the flaw can expose unintended upstream HTTP endpoints, with impact depending on routing and available endpoints. Fixing a direct dependency alone may leave vulnerable transitive copies deployed.

Attribution

Sources

  1. 1Fastify@fastify/reply-from vulnerable to path traversal via backslash dot-segment prefix escapeSource published (UTC)
  2. 2Vuln ScoopUpgrade @fastify/reply-from to 12.8.1 to fix path traversal flawSource published (UTC)
  3. 3Fastifyfastify-http-proxy/package.json
  4. 4Fastifyfastify-http-proxy documentation

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on Backend

All Backend stories

Review · Backend

Review: PostgreSQL 19, a relational database with new maintenance controls

PostgreSQL 19 adds concurrent table repacking that permits access during most of the work. The PostgreSQL Global Development Group released this version of its open-source relational database on November 19, 2026. According to the project, pg_plan_advice influences planner choices, while pg_stash_advice stores and applies guidance by query identifier. The release also adds logical replication of sequence values, get-or-create operations and JSON export.

PostgreSQL

Review · Frontend

Review: MoonBit 1.0 release candidate, a language for WebAssembly and native apps

MoonBit released its 1.0 release candidate on November 26, 2026, freezing compiler changes to bug fixes until 1.0. Its primary targets are native code and WebAssembly, with JavaScript support for browsers and interfaces. The team targets February 18, 2027, for the full release with a stable core library. The async and archive packages may still receive minor API refinements. The moon fix command can apply compiler-suggested fixes.

MoonBit

Fastify names @fastify/reply-from 12.8.1 as fix for upstream path escape · BuildRiot