@fastify/forwarded is vulnerable to Improper Input Validation
53
Medium Risk
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.
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.
@fastify/forwarded is vulnerable to Improper Input Validation in versions 0.1.2 - 3.0.1.
Upgrade the @fastify/forwarded library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant