๐Ÿ” CVE Alert

CVE-2026-18174

MEDIUM 5.3

@fastify/forwarded vulnerable to improper input validation via unstripped tab characters in X-Forwarded-For

CVSS Score
5.3
EPSS Score
0.0%
EPSS Percentile
0th

@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.

CWE CWE-20 CWE-184
Vendor @fastify/forwarded
Product @fastify/forwarded
Published Jul 29, 2026
Stay Ahead of the Next One

Get instant alerts for @fastify/forwarded @fastify/forwarded

Be the first to know when new medium vulnerabilities affecting @fastify/forwarded @fastify/forwarded are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability

Affected Versions

@fastify/forwarded / @fastify/forwarded
0 < 3.0.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/fastify/forwarded/security/advisories/GHSA-2849-m2w7-xm8f cna.openjsf.org: https://cna.openjsf.org/security-advisories.html

Credits

๐Ÿ” alanturing881 mcollina UlisesGascon