Skip to content
Threat Brief

← All advisories

CVE-2026-130886

High 8.2No known exploitationFix available

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

Record last updated

CVSS score

8.2

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 46% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-22

Patching and mitigation

Patch status
Fix available (source: CVE record (openjs))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
No vendor link on record

Affected products

VendorProductAffected versionsFixed inPer
@fastify/reply-from@fastify/reply-fromfrom 12.8.1 before 12.8.412.8.4CVE Program
@fastify/reply-from@fastify/reply-from (unaffected)12.8.4Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by openjs

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (openjs)

    Source: CVE record (openjs) (opens in a new tab)

Vendor guidance and references