8.7
HIGH CVSS 3.1
CVE-2026-16158
@fastify/reply-from vulnerable to cross-upstream request routing via URL cache key collision
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.

INFO

Published Date :

July 18, 2026, 1:17 p.m.

Last Modified :

July 18, 2026, 1:17 p.m.

Remotely Exploit :

No

Source :

ce714d77-add3-4f53-aff5-83d477b104bb
Affected Products

The following products are affected by CVE-2026-16158 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH ce714d77-add3-4f53-aff5-83d477b104bb
Solution
Update the library or disable the cache to prevent cache key collisions and unintended data access.
  • Upgrade to @fastify/reply-from version 12.6.4.
  • Alternatively, set disableCache: true when registering the plugin.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-16158.

URL Resource
https://cna.openjsf.org/security-advisories.html
https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-v574-6498-x57v
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-16158 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-16158 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-16158 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-16158 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by ce714d77-add3-4f53-aff5-83d477b104bb

    Jul. 18, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': '@fastify/reply-from', 'product': '@fastify/reply-from', 'versions': [{'status': 'affected', 'version': '8.3.1', 'lessThan': '12.6.4', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '12.6.4', 'versionType': 'semver'}], 'packageURL': 'pkg:npm/@fastify/reply-from', 'defaultStatus': 'unaffected'}]
    Added 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.
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
    Added CWE CWE-441
    Added Reference https://cna.openjsf.org/security-advisories.html
    Added Reference https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-v574-6498-x57v
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.