@fastify/reply-from is vulnerable to Denial of Service (DoS)
24
Low Risk
When proxying a request to an upstream over HTTP/1, the plugin relayed the upstream response and advertised the client-facing connection as reusable (keep-alive) even when the incoming request body had not been fully consumed. If the upstream responded before the request body was read, the unread body bytes remained buffered on the kept-alive HTTP/1 connection, leaving the parser mid-body so a following request on that connection is not recognized and is silently dropped until the client times out. On reused or pooled downstream connections this desynchronizes the connection and causes denial of service, with potential cross-request corruption where connections are shared across clients. The fix sets the connection: close response header whenever the request is not complete (!req.complete), forcing the connection to close instead of being reused.
You are affected if you are using a version that falls within the vulnerable range and you proxy requests over HTTP/1 where an upstream can respond before the client request body is fully read.
@fastify/reply-from is vulnerable to Denial of Service (DoS) in versions 7.0.0 - 12.6.2.
Upgrade the @fastify/reply-from library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant