Skip to main content

@fastify/reply-from EUVDEUVD-2026-130500

| CVE-2026-130886 HIGH
Path Traversal (CWE-22)
2026-11-19 openjs
8.2
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send request with scheme-prefixed encoded dots
  2. Delivery
    Bypass buildURL per-segment dot check
  3. Exploit
    Proxy forwards %2e%2e%2f unchanged upstream
  4. Execution
    Upstream percent-decodes and resolves traversal
  5. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

@fastify/reply-from 12.8.1 <12.8.4

Affected Packages

euvd fastify_reply_from fix: 12.8.4

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

Vendor (openjs) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
vuln.today AI 6.5 MEDIUM

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

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 6.5 MEDIUM

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 20:04 EUVD
CVE Published
Nov 19, 2026 - 18:06 cve.org
HIGH 8.2

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Medium
Fastify HTTP proxy plugin, moderate npm adoption, not universally deployed
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy