npm
CVE-2026-90711
proxy-addr vulnerable to IP spoofing via IPv4-mapped IPv6 trust subnet
- Severity
- Critical 9.1
- Published
- 5 Oct 2026
- Last changed
- 5 Oct 2026
- Added to UpHeron
- 22 Oct 2026
- Fixed in
- 2.0.8
- Exploit chance
- 0.3% in the next 30 daysHigher than 17% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N- Also known as
- GHSA-jqcg-44mw-7w3h
- Sources
- OSV.dev and GitHub
Description
proxy-addr determines which network hops are trusted proxies so that X-Forwarded-For can be believed. When an application configures a trust subnet as an IPv4-mapped IPv6 address with a short prefix, such as ::ffff:10.0.0.0/8 (the correct spelling is ::ffff:10.0.0.0/104), the subnet compiles with all-zero leading bits and matches every IPv4 address instead of the block it names. The same happens for any IPv6 trust subnet with zero leading bits, such as ::/1.
Every unauthenticated client is then trusted as a proxy at hop 0, so proxyaddr(req, trust), and therefore req.ip and req.ips in Express, returns whatever the client sends in X-Forwarded-For. This defeats IP-based access control, rate limiting, geolocation, and audit logging. The misconfiguration compiles without any error, and the same block written correctly behaves correctly, so the difference is not visible from the configuration.
Workarounds
Write IPv4 trust subnets in plain IPv4 notation (for example 10.0.0.0/8). If IPv4-mapped IPv6 notation is required, use the full form so the prefix covers the mapped marker (for example ::ffff:10.0.0.0/104 for the 10.0.0.0/8 block).
Affected software
| Software | Affected versions |
|---|---|
proxy-addrnpm · osv:npm:proxy-addr |
|
About proxy-addr
- Weekly downloads (npm)
- 162,898,137npm, 17 Nov 2026
This is the only vulnerability in proxy-addr in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-90711
- GitHub Advisory Database https://github.com/advisories/GHSA-jqcg-44mw-7w3h