Use of Less Trusted Source in Fastify - CVE-2026-16732
Published: August 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to use of less trusted source in X-Forwarded-* handling for request.host, request.protocol, request.hostname, request.ip, and request.ips when processing requests with trustProxy configured as a hop count. A remote attacker can send a specially crafted request directly to the Fastify origin with spoofed X-Forwarded-* headers to disclose sensitive information.
Exploitation requires direct network reachability to the Fastify origin while the application is configured with the numeric trustProxy form.