@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.
Summary
AI@fastify/reply-from processes a client's Connection header after adding proxy headers to an upstream request; @fastify/http-proxy is affected because it delegates to @fastify/reply-from. A client can list proxy-added headers in the Connection header to remove headers used for routing, access control, or security.
Who should check
Teams using npm @fastify/reply-from versions before 12.6.2 or @fastify/http-proxy versions before 11.4.4 should check their deployments.
What to do
- 1Upgrade @fastify/reply-from to 12.6.2 or later.
- 2Upgrade @fastify/http-proxy to 11.4.4 or later.