Path traversal in @fastify/reply-from bypasses upstream prefix checks
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
@fastify/reply-from versions from 12.8.1 before 12.8.4 forward requests to upstream servers. Its buildURL check misses encoded parent-directory segments when the source starts with a special scheme such as http, which is a path traversal flaw (CWE-22). An unauthenticated remote client can reach upstream paths outside the configured prefix when the upstream decodes the request path before resolving dot-segments.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| @fastify/reply-from | @fastify/reply-from | 12.8.1 to before 12.8.4 | 12.8.4 | Patch available | CNA |
- @fastify/reply-from Vendor@fastify/reply-from Affected 12.8.1 to before 12.8.4 Fixed in 12.8.4 Patch available CNA
Remediation
Upgrade @fastify/reply-from to 12.8.4 or later, which fixes the issue. Red Hat rates the issue Moderate and lists Red Hat OpenShift AI (RHOAI) and Red Hat OpenShift Dev Spaces as affected, with no fix plan available for either product.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA @fastify/reply-from (@fastify/reply-from) Fixed in 12.8.4
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
@fastify/reply-from 12.8.4
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-95065 Path traversal in @fastify/reply-from via semicolon path parametersPriority MEDIUM 42
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet: Fix deferred |
Timeline
- 2026-11-19 Threatist record created from CVE-2026-130886
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
References
More @fastify/reply-from vulnerabilities
- TI-2026-95065 Path traversal in @fastify/reply-from via semicolon path parameters CVSS 3.1HIGH 8.2
- TI-2026-83785 Path traversal in @fastify/reply-from via backslash dot-segments CVSS 3.1HIGH 8.2
- TI-2026-95966 Request smuggling in @fastify/reply-from via forwarded Content-Length CVSS 3.1CRITICAL 9.0
- TI-2026-69753 Improper certificate validation in @fastify/reply-from transports CVSS 3.1HIGH 7.4
Sources
- CVE-2026-130886 · CVE Program
- CVE-2026-130886 · NVD
- FIRST EPSS
- CVE-2026-130886 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences