HTTP Request Smuggling Affecting @fastify/reply-from package, versions <12.9.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTIFYREPLYFROM-22743812
  • published23 Nov 2026
  • disclosed20 Nov 2026
  • creditSumit-Sabhaya

Introduced: 20 Nov 2026

NewCVE-2026-133212  (opens in a new tab)
CWE-444  (opens in a new tab)

How to fix?

Upgrade @fastify/reply-from to version 12.9.1 or higher.

Overview

@fastify/reply-from is a forward your HTTP request to another server, for fastify

Affected versions of this package are vulnerable to HTTP Request Smuggling via the handleDest function in index.js, which forwards the client's Content-Length header to the upstream server even when no body is written. This occurs for GET, HEAD, or TRACE requests that carry a body (which Fastify does not read), and for JSON bodies that parse to a falsy value (null, 0, false, or ""), where a truthiness check causes the body to be silently dropped. The upstream server then waits for bytes that never arrive and reads the next request on the keep-alive connection as the tail of the previous body, allowing an unauthenticated attacker to desynchronize the connection, smuggle arbitrary HTTP requests past the proxy's routes, hooks, and authentication, reach upstream-only endpoints, and exhaust the upstream connection pool.

Note: This is only exploitable when using the core Node.js http transport (the http option, undici: false, or any release before 5.0.0 where it was the default); the default undici transport and the HTTP/2 path are not affected.

Workaround

Use the default undici transport (do not set the http option or undici: false). Alternatively, in an onRequest hook that runs before reply.from(), reject requests that carry a body on a method that should not have one, and avoid forwarding falsy JSON bodies.

CVSS Base Scores

version 4.0
version 3.1