fastify
cpe:2.3:a:fastify:fastify:*:*:*:*:node.js:*:*
- <= 5.8.2
A vulnerability exists in Fastify versions through 5.8.2 when the trustProxy setting is configured with a restrictive trust function. In this scenario, the request.protocol and request.host getters can be manipulated to read the X-Forwarded-Proto and X-Forwarded-Host headers from untrusted connections. This exploitation allows an attacker to spoof the protocol and host information seen by the application, potentially bypassing security measures that rely on these headers.
This vulnerability can lead to security decisions being based on spoofed header information, which could undermine HTTPS enforcement, secure cookie flags, CSRF origin checks, URL construction, and host-based routing.
Users can upgrade to Fastify version 5.8.3 or later to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.