# CVE-2026-18174: @fastify/forwarded vulnerable to improper input validation via unstripped tab characters in X-Forwarded-For

- Severity: Medium 5.3 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-07-29T13:46:07.361Z
- Modified: 2026-08-05T15:34:17.960Z
- Weaknesses: CWE-20, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

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

(As written by CVE List.)

## Affected

- @fastify/forwarded @fastify/forwarded: before 3.0.2 (not affected: 3.0.2)
- fastify fastify/forwarded: before 3.0.2

## References

- <https://github.com/fastify/forwarded/security/advisories/GHSA-2849-m2w7-xm8f> (mitigation, vendor-advisory)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-18174](https://www.cve.org/CVERecord?id=CVE-2026-18174), CVE Terms of Use, modified 2026-07-29
- NVD: [CVE-2026-18174](https://nvd.nist.gov/vuln/detail/CVE-2026-18174), Public domain, modified 2026-08-05

---

Page: https://cve.day/CVE-2026-18174 · Whole record: https://cve.day/CVE-2026-18174.json · Rebuilt by cve.day 2026-11-25T22:59:30.434Z
