Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-16158
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:33 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 18 Jul 2026, 12:28 UTC

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.

osv:CVE-2026-16158
Complete source record
{
  "id": "00c90a284452f9666421f861fc29e39f88b0c2733a80e4705c74e511e06741cf",
  "url": "https://osv.dev/vulnerability/CVE-2026-16158",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "@fastify/reply-from vulnerable to cross-upstream request routing via URL cache key collision",
    "summary": "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.",
    "evidence": "osv:CVE-2026-16158",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-16158",
      "aliases": [
        "CVE-2026-16158",
        "GHSA-v574-6498-x57v"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/fastify/fastify-reply-from",
              "type": "GIT",
              "events": [
                {
                  "introduced": "85eee1901102e804faf9557d839b565020309ead"
                },
                {
                  "fixed": "08e537c8b7b8100b8ffb677611301f7612fb15fe"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "8.3.1"
                      },
                      {
                        "fixed": "12.6.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:fastify:fastify\\/reply-from:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "8.3.1"
                      },
                      {
                        "fixed": "12.6.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v12.6.3",
            "v12.6.2",
            "v12.6.1",
            "v12.5.0",
            "v12.4.0",
            "v12.3.1",
            "v12.3.0",
            "v12.2.0",
            "v12.1.0",
            "v12.0.2",
            "v12.0.1",
            "v12.0.0",
            "v11.0.2",
            "v11.0.1",
            "v11.0.0",
            "v9.8.0",
            "v9.7.0",
            "v9.6.0",
            "v9.5.0",
            "v9.4.0",
            "v4.18.0",
            "v9.3.0",
            "v9.2.0",
            "v9.1.0",
            "v9.0.2",
            "v10.0.0",
            "v9.0.1",
            "v9.0.0",
            "v8.4.3",
            "v8.4.2",
            "v8.4.1",
            "v8.4.0",
            "v8.3.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-16158.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.484867867Z",
      "provider": "osv",
      "references": [
        "https://cna.openjsf.org/security-advisories.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16158.json",
        "https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-v574-6498-x57v",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-16158"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-441"
        ],
        "cna_assigner": "openjs",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/16xxx/CVE-2026-16158.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-16158",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491940,
  "published_at": "2026-07-18T12:28:17.262+00:00"
}