Intel

AIKIDO-2026-60639

@fastify/forwarded is vulnerable to Improper Input Validation

Improper Input ValidationCVE-2026-18174 Published Jul 29, 2026

53

Medium Risk

This Affects:

JS@fastify/forwarded
0.1.2 - 3.0.1
Fixed in 3.0.2
Are you affected? Scan for Free

TL;DR

The @fastify/forwarded package resolves client addresses from the X-Forwarded-For header by trimming optional whitespace around comma-separated entries. The parser strips space characters but not horizontal tabs, so an entry padded with a leading or trailing 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 allowlists, blocklists, per-IP rate-limit keys, or audit-log correlation, can be evaded when untrusted input inserts a tab before an address, because the resolved string no longer matches the expected value. The fix treats a horizontal tab as optional whitespace alongside space when trimming entries.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application makes exact-string-match security decisions on the resolved client IP address.

Background info

@fastify/forwarded is vulnerable to Improper Input Validation in versions 0.1.2 - 3.0.1.

How to fix this

Upgrade the @fastify/forwarded library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform