CVE-2026-18174
Last modified
CVE-2026-18174 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. @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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Fastify | Fastify\/Forwarded | < 3.0.2 |
References
- https://cna.openjsf.org/security-advisories.htmlVendor Advisory
- https://github.com/fastify/forwarded/security/advisories/GHSA-2849-m2w7-xm8fVendor Advisory, Mitigation
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-18174?
How severe is CVE-2026-18174?
How do I fix CVE-2026-18174?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-18140Uncontrolled recursion in the unknown-key skip path of the a…8.7
- CVE-2026-18141A flaw was found in aap-gateway, a component of Ansible Auto…8.2
- CVE-2026-1815Insufficient session expiration vulnerability in Turkiye Ele…5.7
- CVE-2026-18157A flaw was found in yggdrasil-worker-package-manager. A loca…7.8
- CVE-2026-1816Improper restriction of excessive authentication attempts vu…6.3
- CVE-2026-18171Docker Sandboxes (sbx) applies the read-only intent of a run…5.7
- CVE-2026-18186A stored format string vulnerability was found in the FTP Ba…8.1
- CVE-2026-18187A format string vulnerability was found in the Internal Back…8.1
- CVE-2026-18188A format string vulnerability was found in the Rsync Backup …8.1
- CVE-2026-1819Improper Neutralization of Input During Web Page Generation …8.8
- CVE-2026-18191VIN-DS783E-E6 developed by Vacron has a Hidden Functionality…9.8
- CVE-2026-18192VIN-DS783E-E6 developed by Vacron has an Arbitrary File Read…7.1
Are you affected by CVE-2026-18174?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
