CVE-2026-127064
Deferred Deferred - Pending Action

Path Traversal in Fastify Reply-From Plugin

Vulnerability report for CVE-2026-127064, 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 before 12.8.4, its buildURL function rejects parent-directory path segments by an exact string match, so a segment that carries a semicolon path parameter, such as a dot-dot segment followed by a semicolon and an optional parameter, is not equal to the plain dot-dot form and passes the traversal check, and the WHATWG URL parser keeps it as an ordinary segment so the base-prefix containment check also passes. Backends that strip semicolon path parameters before resolving dot-segments, such as Apache Tomcat, Jetty, WildFly, and Spring Boot, turn the segment back into a parent-directory reference and resolve it, so an unauthenticated client can escape the intended upstream prefix and reach internal paths such as admin or internal API endpoints, including with state-changing methods. Deployments that proxy to Node.js, nginx, or Express upstreams are not affected. 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-20
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
fastify reply-from From 12.8.4 (inc)
fastify reply-from to 12.8.4 (exc)
openjs_foundation on-headers *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-436 Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.
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 affects the @fastify/reply-from npm package versions before 12.8.4. It allows path traversal by using semicolon-separated path parameters like ..; or ..;jsessionid=x. The buildURL function fails to block these segments, letting attackers bypass security checks and access restricted paths such as internal APIs or admin endpoints.

Detection Guidance

Check if your system uses @fastify/reply-from versions prior to 12.8.4 by running: npm list @fastify/reply-from. Inspect HTTP requests for semicolon-separated path parameters like ..; or %2e%2e; in URLs. Monitor for unauthorized access to internal paths or admin endpoints.

Impact Analysis

An unauthenticated attacker could exploit this to escape the intended proxy prefix and reach internal paths or endpoints. This may lead to unauthorized data access, manipulation of internal services, or exposure of sensitive information. Systems proxying to Java servlet containers like Apache Tomcat or Spring Boot are most at risk.

Mitigation Strategies

Upgrade @fastify/reply-from to version 12.8.4 or later using: npm update @fastify/reply-from. As a temporary workaround, configure your upstream server to reject requests with semicolons in paths or strip semicolon parameters before resolving dot-segments.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-127064. 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...