Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend request with scheme-prefixed encoded dots
-
DeliveryBypass buildURL per-segment dot check
-
ExploitProxy forwards %2e%2e%2f unchanged upstream
-
ExecutionUpstream percent-decodes and resolves traversal
-
ImpactRead sibling or parent upstream endpoints
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific deployment pattern, not a default configuration: the application must pass attacker-influenced input into a prefix-scoped reply.from() source (e.g. reply.from('/v1/public/' + req.params['*'])), or rely on Fastify route guards placed in front of reply.from() to enforce scope. Additionally, the upstream server must percent-decode the request path before resolving dot-segments for the forwarded %2e%2e%2f traversal to escape the prefix. Only @fastify/reply-from versions 12.8.1 through 12.8.3 are affected (12.8.0 and earlier rejected the decoded form; 12.8.4 fixes it). No authentication is required (PR:N). Limiting factors: the non-default prefix-scoping/route-guard usage, the upstream's decode-then-resolve behavior, and the narrow affected version window. Not exploitable where the application does not scope proxying by attacker-controlled path or where the upstream resolves dot-segments before decoding. No workarounds exist; upgrading to 12.8.4 is the only fix. Note the advisory's out-of-scope double-decoding case (CWE-174) is a separate upstream issue. |
| Impact | Signals are moderately strong but not urgent. The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N, base 8.2 HIGH) describes a remote, unauthenticated, confidentiality-centric path traversal. However, the vuln.today decision label is 'this_week' (not act_now/emergency), KEV status is not present (no CISA listing), and no EPSS score or SSVC exploitation/automatable/technical-impact fields were supplied - so probabilistic and decision-framework signals are largely absent rather than high. No confirmed working exploit is indicated; the only references are the GHSA advisory and the CNA page, which document the payload concept (http:%2e%2e%2fsecret.txt) but are not flagged as verified exploit code. The raw AC:L overstates real-world ease: successful exploitation is gated on two deployment-specific preconditions the attacker does not control - the application must feed attacker-influenced input into a prefix-scoped reply.from() source (or rely on Fastify route guards in front of the proxy), AND the upstream must percent-decode the request path before resolving dot-segments. Net: a legitimately high-severity read-primary traversal worth patching this week, but closer to a conditional/targeted issue than a broadly wormable one; treat as priority remediation, not an active-exploitation emergency, pending any EPSS/KEV update. |
| Exploit ScenarioDerived | An unauthenticated client sends a request such as http:%2e%2e%2fsecret.txt to a Fastify application that proxies a scoped prefix via reply.from('/v1/public/' + userInput). The scheme prefix makes the WHATWG URL parser drop the scheme and treat the encoded dots as a relative path, so buildURL()'s per-segment check sees 'http:..' and passes it, while the proxy forwards %2e%2e%2fsecret.txt to an upstream that percent-decodes before resolving dot-segments and serves a file outside the configured prefix. No verified working exploit is published; the GHSA advisory documents the payload but is not confirmed exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
Path traversal in the @fastify/reply-from Fastify proxy plugin (versions 12.8.1 through 12.8.3) lets an unauthenticated remote client break out of a configured upstream URL prefix that the application builds from attacker-influenced input, such as reply.from('/v1/public/' + req.params['*']). A source string that begins with the base's own special scheme glued to a percent-encoded '../' sequence slips past the per-segment dot-segment check added in 12.8.1, and the proxy forwards the encoded traversal unchanged; the escape only materialises when the upstream server percent-decodes the path before resolving dot-segments, and the assessed vector reflects that dependency (AC:H) rather than a default-configuration exploit. There is no public exploit identified at time of analysis and no KEV listing. The vendor has released 12.8.4, which re-validates dot-segments on the decoded path actually sent upstream; 12.8.0 and earlier already rejected the decoded form, so the exposure window is narrow and upgrading is the only complete fix.
RemediationAI
Upgrade @fastify/reply-from to 12.8.4 or later, which is the vendor-released patch (advisory GHSA-2ccw-8rvh-6cmg, https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-2ccw-8rvh-6cmg); the fix re-checks dot-segments on the decoded path of the parsed URL - the path actually forwarded upstream - so a scheme prefix can no longer alter what is validated. The vendor lists no workarounds, so upgrading is the only complete remeditation for this plugin; note that 12.8.0 and earlier are also unaffected, so pinning to a pre-12.8.1 release removes this specific bypass but forfeits the per-segment hardening introduced in 12.8.1. Reducing exposure in the interim depends on deployment conditions rather than a supported workaround: avoid concatenating attacker-controlled path input into a prefix-scoped reply.from() source and avoid treating Fastify route guards placed in front of the proxy as the sole scope boundary, at the cost of reworking routing; require upstreams to resolve dot-segments before percent-decoding, since a decode-then-resolve upstream is what turns the forwarded encoding into an actual escape. Separately, the advisory's out-of-scope double-decoding case (CWE-174, e.g. unquote(unquote(path)) resolving '%252e%252e%252f') must be fixed in the upstream server itself and is not addressed by this upgrade.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-22 (improper limitation of a pathname to a restricted directory) in the buildURL() helper of the npm package @fastify/reply-from. The plugin validates the attacker-supplied source string by inspecting individual segments for bare '.' and '..' tokens. That per-segment check was introduced in 12.8.1, and it is precisely the logic the bypass targets: when source begins with the same special scheme as the configured base ('http:' or 'https:'), the WHATWG URL parser discards the scheme and treats the remainder as a relative reference resolved against the base. A payload like 'http:%2e%2e%2fsecret.txt' therefore presents an inspected segment reading 'http:..' rather than '..', passing validation, while the encoded traversal '%2e%2e%2f' is relayed upstream verbatim. The vulnerability is only realised on the upstream side if that server percent-decodes the request path before resolving dot-segments, in which case it serves a path outside the configured prefix and can reach sibling or parent endpoints. Because the flaw requires a prefix-scoped or route-guard-dependent use of reply.from() with attacker-influenced input plus a decode-then-resolve upstream, the assessed severity uses AC:H; CWE-174 double-decoding upstream (e.g. unquote(unquote(path)) resolving '%252e%252e%252f') is explicitly out of scope and is a separate upstream defect.
Know when Fastify Reply From gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Remote and unauthenticated (AV:N/PR:N), but AC:H because success depends on upstream percent-decoding-before-dot-resolution and a prefix-scoped proxy config beyond attacker control; impact is read-primary (C:H, I:L, A:N).
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
@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.
Technical POC Analysis
CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in the @fastify/reply-from plugin (versions 12.8.1-12.8.3) could allow unauthenticated attackers to access internal upstream services if your applications use dynamic path construction. This affects any service built on these versions, potentially exposing sensitive data or functionality behind the proxy. Leadership should prioritize remediation due to the high CVSS score and the plugin's role in API gateways and microservice architectures.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Fastify Reply From
View allCross-upstream data exposure in the @fastify/reply-from proxy plugin (versions 8.3.1 through 12.6.3) lets remote unauthe
fastify-reply-from is an npm package which is a fastify plugin to forward the current http request to another server. Ra
HTTP header smuggling in @fastify/reply-from ≤12.6.1 and @fastify/http-proxy ≤11.4.3 allows remote unauthenticated attac
Request smuggling in @fastify/reply-from before 12.9.1 allows unauthenticated remote clients to desynchronize upstream c
Path traversal in the Fastify proxy plugin @fastify/reply-from before 12.8.4 lets an unauthenticated remote client escap
Unauthenticated path traversal in the Fastify plugin @fastify/reply-from (all releases up to and including 12.8.0) lets
TLS certificate verification bypass in @fastify/reply-from versions prior to 12.7.0 allows an on-path attacker to impers
EUVD-2026-130500
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB