CVE-2026-121192

Description

A flaw was found in @fastify/proxy-addr. When the trust proxy setting is configured with a zoned IPv6 link-local address, the library compares only the IP address bits and ignores the network zone identifier. An attacker situated on an alternate network interface of a multi-homed server sharing that link-local address can exploit this flaw to forge forwarded request headers. Consequently, an attacker can spoof client identity, potentially bypassing IP-based access controls, rate limiting, and audit logging.

Statement

This vulnerability is rated as Moderate severity because successful exploitation requires specific non-default preconditions, including a multi-homed host deployment and an attacker positioned on an adjacent local network segment. By default, applications do not trust zoned link-local proxies, and configurations relying on standard loopback, private IPv4, or global IPv6 addresses remain unaffected. When the vulnerable setting is actively used, adjacent attackers can forge client request headers, which may undermine downstream access restrictions, rate limits, and audit logs.

Mitigation

Configure the application's `trustProxy` setting to avoid using zoned IPv6 link-local addresses on multi-homed systems. Instead, explicitly configure trust for loopback addresses (such as `127.0.0.1` or `::1`), private IP subnets, or dedicated global IPv6 addresses corresponding to upstream reverse proxies. Alternatively, implement firewall filtering on adjacent interfaces to prevent unauthorized traffic from reaching the application ports.

Application services must be restarted or reloaded after modifying configuration files for changes to take effect.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.8N/A6.8
Attack VectorAdjacent NetworkN/AAdjacent Network
Attack ComplexityHighN/AHigh
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

cve.org: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Understanding the Weakness (CWE)

Access Control

Technical Impact: Bypass Protection Mechanism; Gain Privileges or Assume Identity

This weakness can allow an attacker to access resources which are not otherwise accessible without proper authentication.

Frequently Asked Questions

Want to get errata notifications? Sign up here.