Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
@fastify/http-proxy vulnerable to prefix escape via WebSocket path traversal
Vulnerability Description
Impact: @fastify/http-proxy versions from 9.4.0 up to and including 11.5.0 fail to validate the resolved WebSocket destination path against the configured rewrite prefix. The WebSocket routing path in WebSocketProxy.findUpstream resolves the destination via the WHATWG URL constructor, which collapses dot segments, so a crafted upgrade request with path traversal sequences can escape the rewrite prefix and reach upstream endpoints that were not meant to be exposed by the proxy. This is a variant of CVE-2021-21322 in a code path that never went through the HTTP fix in fastify/reply-from. Exploitation requires a non-normalizing WebSocket client, since browsers and the ws package normalize the request path before sending, but raw HTTP clients or downstream proxies that forward the request target unchanged make the attack reachable in production topologies. Patches: upgrade to @fastify/http-proxy 11.6.0. Workarounds: none.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Vulnerability Title
Fastify @fastify/http-proxy 路径遍历漏洞
Vulnerability Description
Fastify @fastify/http-proxy是Fastify团队的一个HTTP代理模块。 Fastify @fastify/http-proxy 9.4.0版本至11.5.0版本存在路径遍历漏洞,该漏洞源于未验证解析的WebSocket目标路径与配置的重写前缀,可能导致路径遍历攻击,从而绕过重写前缀并访问不应暴露的上游端点。
CVSS Information
N/A
Vulnerability Type
N/A