CVE-2026-130886
Deferred Deferred - Pending Action

Path Traversal in @fastify/reply-from

Vulnerability report for CVE-2026-130886, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-19

Last updated on: 2026-11-19

Assigner: openjs

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-19
Last Modified
2026-11-19
Generated
2026-11-20
AI Q&A
2026-11-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
fastify reply-from From 12.8.1 (inc) to 12.8.3 (inc)
fastify reply-from 12.8.4

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a path traversal issue in the @fastify/reply-from plugin versions 12.8.1 through 12.8.3. Attackers can bypass security checks by using scheme-prefixed encoded dot-segments like http:%2e%2e%2fsecret.txt. The WHATWG URL parser drops the scheme (http: or https:) when the source starts with it, treating the rest as a relative path. This lets the payload pass validation while the proxy forwards the decoded path, potentially escaping the intended prefix and accessing unauthorized endpoints.

Detection Guidance

Check if your system uses @fastify/reply-from versions 12.8.1 through 12.8.3 by running: npm list @fastify/reply-from. If the version is within this range, the system is vulnerable. Test for path traversal by sending encoded dot-segments in requests like http:%2e%2e%2fsecret.txt to see if unauthorized paths are accessible.

Impact Analysis

An unauthenticated attacker could access endpoints outside the configured prefix, bypassing route guards or authentication scopes. This may lead to unauthorized data exposure or actions on the upstream server. The impact is high for confidentiality but low for integrity.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, violating compliance requirements for data protection such as GDPR or HIPAA. Unauthorized access may result in data breaches, triggering legal penalties and reputational damage.

Mitigation Strategies

Upgrade @fastify/reply-from to version 12.8.4 or later immediately using: npm update @fastify/reply-from. If upgrading is not possible, restrict access to the proxy endpoint or upstream services until the update is applied.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-130886. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...