漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies
Vulnerability Description
Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g. /) and ws: true, it also intercepts the dev server's own HMR WebSocket and forwards it to the proxy target. This leaks the browser's cookies and Origin header to the backend, bypasses the dev server's Host/Origin validation, and corrupts the HMR socket (both HMR and the proxy end up writing to the same socket). Patches: Fixed in webpack-dev-server@5.2.5. Workarounds: Scope user-defined proxy context to specific paths instead of /, or omit ws: true from the proxy entry when WebSocket forwarding is not required.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Vulnerability Type
源验证错误
Vulnerability Title
webpack-dev-server 输入验证错误漏洞
Vulnerability Description
webpack-dev-server webpack-dev-server是webpack-dev-server的开发服务器。 webpack-dev-server存在安全漏洞,该漏洞源于代理配置不当,当用户配置的代理具有广泛上下文(如/)且启用ws:true时,会拦截开发服务器自身的HMR WebSocket并将其转发到代理目标,导致浏览器Cookie和Origin标头泄露给后端,绕过开发服务器的Host/Origin验证,并破坏HMR套接字。以下版本受到影响:5.2.5之前版本。
CVSS Information
N/A
Vulnerability Type
N/A