CVE-2026-16158

Source
https://cve.org/CVERecord?id=CVE-2026-16158
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-16158.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-16158
Aliases
  • GHSA-v574-6498-x57v
Published
2026-07-18T12:28:17.262Z
Modified
2026-07-23T03:56:07.977225492Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
@fastify/reply-from vulnerable to cross-upstream request routing via URL cache key collision
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16158.json",
    "cna_assigner": "openjs",
    "cwe_ids": [
        "CWE-441"
    ]
}
References

Affected packages

Git / github.com/fastify/fastify-reply-from

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify-reply-from
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "8.3.1"
        },
        {
            "fixed": "12.6.4"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v10.*
v10.0.0
v11.*
v11.0.0
v11.0.1
v11.0.2
v12.*
v12.0.0
v12.0.1
v12.0.2
v12.1.0
v12.2.0
v12.3.0
v12.3.1
v12.4.0
v12.5.0
v12.6.1
v12.6.2
v12.6.3
v4.*
v4.18.0
v8.*
v8.3.1
v8.4.0
v8.4.1
v8.4.2
v8.4.3
v9.*
v9.0.0
v9.0.1
v9.0.2
v9.1.0
v9.2.0
v9.3.0
v9.4.0
v9.5.0
v9.6.0
v9.7.0
v9.8.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-16158.json"