Skip to content

@fastify/reply-from

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

CVE-2026-130886Published 19 Nov 2026, 18:06 UTC

Real-world risk

6.8/ 10Medium

Schedule in the normal cycle

PreliminaryFrom the CVSS vector only · confidence low

CVSS

8.2

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from openjs)

@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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
@fastify/reply-fromNiche>= 12.8.1, < 12.8.412.8.4

What to do

Update to a fixed version: 12.8.4.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.5% chance of exploitation in 30 days (percentile 46), as of 2026-12-04.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.8 × prerequisites 1 × threat 0.856.800
  4. Rounded to one decimal between 0.1 and 106.8

How the score works

Exploitation and evidence timeline

  1. 19 Nov 2026 Published
  2. 3 Dec 2026 Risk 6.8 (cvss fallback)

Weakness

CWE-22

References

Get alerts for @fastify/reply-from

Free email or text alerts when a vulnerability in @fastify/reply-from reaches risk 8 or higher. Nothing else.