@fastify/reply-from
@fastify/reply-from vulnerable to connection header abuse enabling stripping of proxy-added headers
@fastify/reply-from v12.6.1 and earlier and @fastify/http-proxy v11.4.3 and earlier process the client's Connection header after the proxy has added its own headers via rewriteRequestHeaders. This allows attackers to retroactively strip proxy-added headers from upstream requests by listing them in the Connection header value. Any header added by the proxy for routing, access control, or security purposes can be selectively removed by a client. @fastify/http-proxy is also affected as it delegates to @fastify/reply-from. Upgrade to @fastify/reply-from v12.6.2 or @fastify/http-proxy v11.4.4 or later.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 12.6.2
Fixed in 12.6.2
- < 11.4.4
Fixed in 11.4.4
Mitigation
Upgrade @fastify/reply-from to 12.6.2 or later.
Upgrade @fastify/http-proxy to 11.4.4 or later.
References
- Vendor advisory github.com/fastify/fastify-reply-from/security…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.