Skip to main content

fastify-reply-from CVE-2026-16158

| EUVDEUVD-2026-45373 CRITICAL
Unintended Proxy or Intermediary ('Confused Deputy') (CWE-441)
2026-07-18 openjs
10.0
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Reach multi-upstream Fastify proxy
  2. Delivery
    Send requests with colliding source/dest paths
  3. Exploit
    Poison shared URL cache key
  4. Execution
    Resolve to wrong upstream
  5. Impact
    Read or modify cross-upstream data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service Proxy/intermediary controls
Exploitation Conditions

Exploitation requires the plugin to be deployed as a proxy that selects among MULTIPLE upstreams where getUpstream derives the target from request data (dynamic routing), with URL caching left at its default enabled state; the attacker must be able to control both the destination and source path components so that two different upstream mappings concatenate to the same delimiter-less cache key. Limiting factors: deployments with a single upstream, static routing, or disableCache:true are not exploitable, and only paths that produce a genuine key collision trigger the cross-upstream reuse. No authentication or user interaction is required (PR:N/UI:N) for a qualifying multi-upstream configuration.

Impact

The signals conflict and should be read together rather than in isolation. The CVSS 3.1 base score is 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N) driven by network reach, no auth/interaction, and a scope change reflecting that one tenant's proxy can leak into another's data path. However, EPSS is only 0.23% (14th percentile), the CVE is not on CISA KEV, and no POC is referenced - so this is a high-severity-but-not-yet-demonstrated-at-scale issue rather than an active mass-exploitation threat. Critically, exploitability is gated by deployment: the bug only bites when the plugin routes to MULTIPLE upstreams selected from request data AND an attacker can induce the specific destination/source path pairs that collide into one cache key. Single-upstream or statically-routed deployments are not meaningfully exposed, which is why the low EPSS is consistent despite the perfect CVSS. Treat as an urgent patch for multi-tenant/multi-upstream gateways, and as lower practical priority for single-backend proxies.

Exploit ScenarioDerived

An attacker sends a sequence of crafted HTTP requests to a Fastify gateway that dynamically proxies to several upstreams, choosing source/destination paths engineered to concatenate into a cache key already associated with a different backend. A subsequent legitimate or attacker request then resolves to the wrong upstream URL, letting the attacker read or modify data intended for another tenant/service. No public exploit is identified at time of analysis, and exploitation requires network reach to a multi-upstream deployment.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – Aug 05, 2026

Cross-upstream data exposure in the @fastify/reply-from proxy plugin (versions 8.3.1 through 12.6.3) lets remote unauthenticated attackers read and tamper with data belonging to a different backend by exploiting a URL cache-key collision. Because the cache key concatenates destination and source paths with no delimiter, distinct destination/source pairs resolving to different upstreams can collapse to the same key, so a cached URL for one upstream is served for a request routed to another. The flaw is present in the default configuration; there is no public exploit identified at time of analysis and EPSS is low (0.23%, 14th percentile).

Earlier versions of this analysis (1)
v1 Jul 18, 2026 - 13:15 CVSS 8.7

Cross-upstream data exposure in @fastify/reply-from (the Fastify HTTP reverse-proxy plugin) versions 8.3.1 through 12.6.3 lets remote attackers read and modify data belonging to a different upstream than the one intended. Because the internal response-cache key is built by concatenating the destination and source paths without a delimiter, distinct upstream/path pairs can collide on the same key, so a response cached for upstream A is served for a request routed to upstream B. It affects the default configuration; no public exploit has been identified at time of analysis, and it is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade @fastify/reply-from to 12.6.4, which corrects the cache-key construction; this is the primary and recommended fix. If you cannot upgrade immediately, the vendor-documented workaround is to register the plugin with disableCache: true, which eliminates the colliding-key reuse at the cost of losing URL-resolution caching (a modest per-request CPU overhead and no functional change to routing). Operators should also audit whether upstreams are selected dynamically from request data, since that is the exposure condition. Refer to GHSA-v574-6498-x57v (https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-v574-6498-x57v) and https://cna.openjsf.org/security-advisories.html for the authoritative guidance.

Affected VersionsENISA

@fastify/reply-from 8.3.1 <12.6.4

Affected Packages

euvd fastify_reply_from fix: 12.6.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

@fastify/reply-from is a Fastify plugin that forwards (reverse-proxies) incoming HTTP requests to one or more upstream services, commonly used to build API gateways and BFF layers in Node.js. To avoid recomputing target URLs, it maintains an internal cache keyed on the request routing; the defect is that the key is formed by string-concatenating the destination path and the source path without a separator (e.g. 'ab'+'c' collides with 'a'+'bc'). This is a classic CWE-441 (Unintended Proxy or Intermediary / confused deputy) condition, realized here as a cache-key aliasing bug: when getUpstream chooses the backend dynamically from request data, the ambiguous key causes the resolver to hand back a URL computed for a different upstream. The affected package is identified by cpe:2.3:a:@fastify/reply-from:@fastify/reply-from:*:*:*:*:*:*:*:* across 8.3.1 up to (not including) 12.6.4.

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 HIGH
NVD 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
vuln.today AI 8.7 HIGH

Network, unauthenticated, no interaction, and scope-changed cross-upstream C/I impact; AC:H because it needs a multi-upstream dynamic-routing deployment plus attacker-crafted path pairs that actually collide.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from Vendor (openjs).

CVSS VectorNVD

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

Lifecycle Timeline

5
Analysis Updated
Aug 05, 2026 - 19:58 vuln.today
v2 - CVSS changed
Severity Changed
Aug 05, 2026 - 19:52 NVD
HIGH CRITICAL
CVSS changed
Aug 05, 2026 - 19:52 NVD
8.7 (HIGH) 10.0 (CRITICAL)
Patch available
Jul 18, 2026 - 15:17 EUVD
CVE Published
Jul 18, 2026 - 12:28 cve.org
HIGH 8.7

DescriptionNVD

Impact: @fastify/reply-from versions from 8.3.1 up to but not including 12.6.4 build the internal URL cache key by concatenating the destination and source path without a delimiter. Different destination and source pairs can therefore produce the same key while resolving to different upstream URLs. When getUpstream selects an upstream from request data, a URL cached for one upstream can be reused for a request intended for another upstream, causing cross-upstream data access and modification. The default configuration is affected. Setting disableCache to true prevents the behavior. Patches: upgrade to @fastify/reply-from 12.6.4. Workarounds: pass disableCache: true when registering the plugin.

Executive ViewAI

Why It Matters

The @fastify/reply-from proxy plugin (versions 8.3.1-12.6.3) contains a critical cache-poisoning flaw that allows unauthenticated remote attackers to read and modify data crossing between backend services, with no public exploit identified at time of analysis. Any organization using this plugin to route traffic between internal systems faces immediate risk of data exposure and integrity violations. Immediate patching is required to prevent cross-service data leakage.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
common Fastify reverse-proxy plugin, moderate Node.js gateway footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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