{"id":"CVE-2026-121192","state":"PUBLISHED","title":"@fastify/proxy-addr vulnerable to IP spoofing via ignored IPv6 zone identifier","description":"@fastify/proxy-addr determines which network hops are trusted proxies and backs Fastify's trustProxy setting, so that forwarded headers can be believed. In versions 3.0.0 through 5.1.2, when trustProxy is configured with a zoned IPv6 link-local address, the trust comparison checks only the address bits and ignores the zone identifier, so a host on another link of a multi-homed server that carries the same link-local address is trusted as well. Such an attacker can spoof the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto headers, making the client IP, host and protocol reported by Fastify attacker-chosen values and defeating IP allowlists, rate limiting and audit logging. Exploitation requires a multi-homed server whose trustProxy is a zoned link-local address and an attacker directly on one of its other links; the default configuration and global, private or loopback trust entries are not affected. The issue is fixed in @fastify/proxy-addr 5.1.3, and users should upgrade to 5.1.3 or later. As a workaround, avoid trusting a zoned link-local address on a multi-homed host and trust a global, private or loopback proxy address instead.","publishedAt":"2026-11-16T12:55:59.956Z","updatedAt":"2026-11-17T18:08:42.033Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"openjs"},"assigner":"openjs","products":["@fastify/proxy-addr @fastify/proxy-addr"],"affected":[{"vendor":"@fastify/proxy-addr","product":"@fastify/proxy-addr","packageURL":"pkg:npm/@fastify/proxy-addr","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThan":"5.1.3","versionType":"semver"},{"version":"5.1.3","status":"unaffected","versionType":"semver"}]}],"references":["https://github.com/fastify/proxy-addr/security/advisories/GHSA-fmr2-3fr5-78g8","https://cna.openjsf.org/security-advisories.html"],"weaknesses":["CWE-290","CWE-697"],"ingestedAt":"2026-11-17T18:24:05.344Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/121xxx/CVE-2026-121192.json","commit":"24e773984206fc6b9c622f4632b806d024780ec1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-121192","state":"PUBLISHED","datePublished":"2026-11-16T12:55:59.956Z","dateUpdated":"2026-11-17T18:08:42.033Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2026-11-03T10:24:31.085Z"},"containers":{"cna":{"title":"@fastify/proxy-addr vulnerable to IP spoofing via ignored IPv6 zone identifier","descriptions":[{"lang":"en","value":"@fastify/proxy-addr determines which network hops are trusted proxies and backs Fastify's trustProxy setting, so that forwarded headers can be believed. In versions 3.0.0 through 5.1.2, when trustProxy is configured with a zoned IPv6 link-local address, the trust comparison checks only the address bits and ignores the zone identifier, so a host on another link of a multi-homed server that carries the same link-local address is trusted as well. Such an attacker can spoof the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto headers, making the client IP, host and protocol reported by Fastify attacker-chosen values and defeating IP allowlists, rate limiting and audit logging. Exploitation requires a multi-homed server whose trustProxy is a zoned link-local address and an attacker directly on one of its other links; the default configuration and global, private or loopback trust entries are not affected. The issue is fixed in @fastify/proxy-addr 5.1.3, and users should upgrade to 5.1.3 or later. As a workaround, avoid trusting a zoned link-local address on a multi-homed host and trust a global, private or loopback proxy address instead."}],"affected":[{"vendor":"@fastify/proxy-addr","product":"@fastify/proxy-addr","packageURL":"pkg:npm/@fastify/proxy-addr","defaultStatus":"unaffected","versions":[{"version":"3.0.0","status":"affected","lessThan":"5.1.3","versionType":"semver"},{"version":"5.1.3","status":"unaffected","versionType":"semver"}]}],"references":[{"url":"https://github.com/fastify/proxy-addr/security/advisories/GHSA-fmr2-3fr5-78g8"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":6.8,"baseSeverity":"MEDIUM"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-290","lang":"en","description":"CWE-290: Authentication Bypass by Spoofing","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-697","lang":"en","description":"CWE-697: Incorrect Comparison","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2026-11-16T12:55:59.956Z"},"credits":[{"lang":"en","type":"finder","value":"jackfromeast"},{"lang":"en","type":"remediation developer","value":"mcollina"},{"lang":"en","type":"remediation reviewer","value":"UlisesGascon"},{"lang":"en","type":"reporter","value":"superboy-zjc"}],"x_generator":{"engine":"cve-kit 1.0.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-17T18:07:56.971085Z","id":"CVE-2026-121192","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-17T18:08:42.033Z"}}]}}}