CVE-2026-121192
published medium CVSS 3.1 · 6.8@fastify/proxy-addr vulnerable to IP spoofing via ignored IPv6 zone identifier
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/proxy-addr | — | @fastify/proxy-addr3.0.0 to < 5.1.3 (affected · semver) · 5.1.3 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/proxy-addr | @fastify/proxy-addr | 3.0.0 to < 5.1.3 (affected · semver)5.1.3 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
2- CWE-290 CWE-290: Authentication Bypass by Spoofing
- CWE-697 CWE-697: Incorrect Comparison
References
2Provider assertions
2openjs · cna
@fastify/proxy-addr vulnerable to IP spoofing via ignored IPv6 zone identifier
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0e35950efbfb2c359ed23990d29986ad192d235d5ca49fbe40f0eae7513a1fa8
- Ingested
- 17 Nov 2026, 18:18:24 UTC
- Source record
- Official CVE record