CVE-2026-16158 Details
Description
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.
A vulnerability in @fastify/reply-from versions 8.3.1 prior to 12.6.4 allows for cross-upstream request routing due to a URL cache key collision. The vulnerability arises because the internal URL cache key is created by concatenating the destination and source paths without a delimiter. This can lead to different destination-source pairs producing the same cache key while pointing to different upstream URLs. As a result, a cached URL intended for one upstream can be incorrectly reused for a request meant for another, causing unauthorized access to and modification of data across upstreams. The default configuration is vulnerable, but setting disableCache to true can prevent this issue.
Users can upgrade to @fastify/reply-from version 12.6.4 or later. Alternatively, set disableCache to true when registering the plugin to disable the URL cache, although this may incur a performance cost.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Vendor Advisory |
| https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-v574-6498-x57v | openjs | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-441 | Unintended Proxy or Intermediary ('Confused Deputy') | openjs |
Affected Products
| Product | Versions |
|---|---|
| fastify fastify/reply-from | >= 8.3.1, < 12.6.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 5, 2026 | Initial Analysis | [email protected] |
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2026 | New CVE Received | openjs |