Forwarded-header spoofing via trustProxy hop-count
Published Aug 18, 2026 · Updated Aug 19, 2026
Request spoofing in Fastify 5.8.3 through 5.12.0 allows remote attackers to falsify host, protocol, and client IP data via X-Forwarded-* headers. The guard added after CVE-2026-3635 validates forwarded-header reads with proxyFn(socket.remoteAddress, 0), but numeric trustProxy values compile to predicates that ignore the connecting address, so any hop count of 1 or more always passes. Exposure requires direct network reachability to the Fastify origin despite a front-facing proxy; reachable deployments can suffer host injection, HTTPS-enforcement bypass, secure-cookie and CSRF-origin bypass, host-based routing errors, and cache poisoning.
Summary
What happened
Request spoofing in Fastify 5.8.3 through 5.12.0 allows remote attackers to falsify host, protocol, and client IP data via X-Forwarded-* headers. The guard added after CVE-2026-3635 validates forwarded-header reads with proxyFn(socket.remoteAddress, 0), but numeric trustProxy values compile to predicates that ignore the connecting address, so any hop count of 1 or more always passes. Exposure requires direct network reachability to the Fastify origin despite a front-facing proxy; reachable deployments can suffer host injection, HTTPS-enforcement bypass, secure-cookie and CSRF-origin bypass, host-based routing errors, and cache poisoning.
The record
- CVE
- CVE-2026-16732
- Published
- Aug 18, 2026
- Updated
- Aug 19, 2026
- Vendor
- Fastify
- Product
- Fastify
- Classifications
- CWE-348, T1190
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 18, 2026CVE publishedPublication date reported by the CVE source.
- Aug 19, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.8.3 <5.12.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo