CVE-2026-16158: @fastify/reply-from vulnerable to cross-upstream request routing via URL cache key collision

Published Jul 18, 2026
·
Updated

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.

Affected Software

2 affected components
npm/@fastify/reply-from>8.3.1<=12.6.4
fastify Fastify\/reply-from Node.js>=8.3.1<12.6.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @fastify/reply-from to a version that resolves this vulnerability.

    Fixed in 12.6.4
  2. Configuration

    When registering the plugin, set disableCache to true to prevent internal URL cache key collision behavior across upstreams.

    @fastify/reply-from disableCache = true

Event History

Jul 18, 2026
CVE Published
via MITRE·12:28 PM
Data Sourced
via MITRE·12:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-16158?

CVE-2026-16158 has a high severity rating of 8.7.

2

What impact does CVE-2026-16158 have?

CVE-2026-16158 can lead to cross-upstream request routing due to URL cache key collisions.

3

How do I fix CVE-2026-16158?

To fix CVE-2026-16158, upgrade @fastify/reply-from to version 12.6.4 or higher.

4

Which versions are affected by CVE-2026-16158?

CVE-2026-16158 affects @fastify/reply-from versions from 8.3.1 up to but not including 12.6.4.

5

What is the vulnerability type of CVE-2026-16158?

CVE-2026-16158 is categorized as a cross-request routing vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203