CVE-2026-130886 @fastify/reply-from vulnerable to path traversal via scheme-prefixed encoded dot-segments

High 8.2 Published Updated

Attackers can bypass the prefix check with scheme-prefixed encoded dot-segments to reach sibling or parent upstream endpoints; Fastify apps using @fastify/reply-from should care.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-130886?

CVE-2026-130886 is a high-severity path traversal vulnerability in @fastify/reply-from, published on 19 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

@fastify/reply-from is a Fastify plugin that forwards requests to an upstream HTTP server. In versions 12.8.1 through 12.8.3, its buildURL function checked the attacker-supplied source string for parent-directory segments, but when the source begins with the same special scheme as the base, such as http or https, the WHATWG URL parser drops the scheme and resolves the remainder as a relative path. A payload that glues the scheme to a percent-encoded parent-directory sequence therefore passes the check, because the inspected segment reads as the scheme plus the dots rather than a bare parent-directory token, while the proxy forwards the encoded traversal unchanged. An upstream that percent-decodes the request path before resolving dot-segments then serves a path outside the configured prefix, so an unauthenticated client scoped to an upstream prefix, or relying on Fastify route guards in front of the proxy, can escape that prefix and reach sibling or parent upstream endpoints. The per-segment check added in 12.8.1 is what the scheme prefix bypasses, and releases up to 12.8.0 already rejected the decoded form. The issue is fixed in @fastify/reply-from 12.8.4, and users should upgrade to 12.8.4 or later.

Weakness: CWE-22

Which versions are affected by CVE-2026-130886?

1 open source package ship an affected version, including %40fastify/reply-from.

An affected version is exposed as installed. No special setting or call is needed.

PackageAffectedFixed in
%40fastify/reply-from npm
pkg:npm/%40fastify/reply-from
From 12.8.112.8.4

How do I fix CVE-2026-130886?

Upgrade each affected package to the fixed version listed for it above. Each package has its own fixed versions.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-130886 being exploited?

There is no known exploitation of CVE-2026-130886 in the wild and no public exploit code.

Sources

Also known as GHSA-2ccw-8rvh-6cmg.

Is CVE-2026-130886 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free