CVE-2026-18174

@fastify/forwarded resolves client addresses from the X-Forwarded-For header. In versions before 3.0.2, when the header contains two or more comma separated entries, the parser trims only space characters and does not strip horizontal tabs, even though RFC 7230 defines optional whitespace as both space and tab. As a result, an entry padded with a tab keeps the literal tab in the resolved address string. Applications that make exact string match security decisions on the resolved client IP, such as an allowlist, a blocklist, a per IP rate limit key, or audit log correlation, can be evaded because the tab corrupted string no longer matches the expected value. This does not cross the trust boundary, since a tab corrupted string is not a valid IP and cannot be mistaken for a trusted proxy. The issue is fixed in @fastify/forwarded 3.0.2.
Configurations

Configuration 1 (hide)

cpe:2.3:a:fastify:fastify\/forwarded:*:*:*:*:*:node.js:*:*

History

05 Aug 2026, 15:34

Type Values Removed Values Added
References () https://cna.openjsf.org/security-advisories.html - () https://cna.openjsf.org/security-advisories.html - Vendor Advisory
References () https://github.com/fastify/forwarded/security/advisories/GHSA-2849-m2w7-xm8f - () https://github.com/fastify/forwarded/security/advisories/GHSA-2849-m2w7-xm8f - Vendor Advisory, Mitigation
CPE cpe:2.3:a:fastify:fastify\/forwarded:*:*:*:*:*:node.js:*:*
First Time Fastify
Fastify fastify\/forwarded

29 Jul 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-29 14:16

Updated : 2026-08-05 15:34


NVD link : CVE-2026-18174

Mitre link : CVE-2026-18174

CVE.ORG link : CVE-2026-18174


JSON object : View

Products Affected

fastify

  • fastify\/forwarded
CWE
CWE-20

Improper Input Validation

CWE-184

Incomplete List of Disallowed Inputs