CVE-2026-18174: @fastify/forwarded - Information Disclosure
- Cve: CVE-2026-18174
- Name: @fastify/forwarded - Information Disclosure
- Description: @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.
- Impact: Attackers can evade IP-based security controls like allowlists or rate limits by injecting tabs in client IP addresses.
- Remediation: Upgrade to version 3.0.2 or later.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Epss score: 0.00322
- Epss percentile: 0.25725
- Assignee: ce714d77-add3-4f53-aff5-83d477b104bb
- Published at: 2026-07-29T14:16:28Z
- Age in days: 118
- Modified at: 2026-08-05T15:34:17Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-18174
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
References
| Url | Source | Tags |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | nvd | Vendor Advisory |
| https://github.com/fastify/forwarded/security/advisories/GHSA-2849-m2w7-xm8f | nvd | Vendor Advisory, Mitigation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| fastify:fastify/forwarded | < 3.0.2 | no | nvd | /v1/products/fastify/fastify/forwarded |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| fastify/forwarded | security_advisory | yes | /v1/repositories/fastify/forwarded |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts