Summary
@fastify/reply-from versions before 12.9.1 can forward the client's Content-Length header without sending the matching body, which can desynchronize the upstream connection and allow a request to be smuggled. The source assigns a CVSS 3.1 score of 9.0 (critical severity).
What happened
@fastify/reply-from is a Fastify plugin that forwards an incoming HTTP request to an upstream server. In versions before 12.9.1, when the forwarded request has no body to write to the upstream connection (for example, a GET, HEAD, or TRACE request that carried a body, or a request with a falsy JSON body), the plugin still forwards the client's Content-Length header while sending no body. The upstream server then treats the bytes of the following request as the remainder of the unfinished body, which an attacker can use to desynchronize the connection and smuggle a request. It is classified as CWE-444.
Why it matters
The CVSS 3.1 base score given by the CNA (openjs) is 9.0, with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H, and severity is listed as critical. CISA's KEV catalog does not list this vulnerability as actively exploited. The source does not indicate any evidence that this was a zero-day.
Affected products and versions
@fastify/reply-from: versions before 12.9.1 (< 12.9.1). Version 12.9.1 is listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| @fastify/reply-from @fastify/reply-from | < 12.9.1 | — |
| @fastify/reply-from @fastify/reply-from | 12.9.1 | 12.9.1 |
Action recommended by the source
The vendor states the fix is in @fastify/reply-from 12.9.1 and recommends upgrading to version 12.9.1 or later. More information in the project advisory: https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-mx78-9mrq-rfm5
Fixed in: 12.9.1
Sources and references
- https://github.com/fastify/fastify-reply-from/security/advisories/GHSA-mx78-9mrq-rfm5 — CVE Program
- https://cna.openjsf.org/security-advisories.html — CVE Program
Weaknesses (CWE): CWE-444
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.