PT-2026-49244 · Npm · Webpack-Dev-Server
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Name of the Vulnerable Software and Affected Versions
webpack-dev-server versions prior to 5.2.5
Description
A permissive user-configured proxy with a broad context (e.g., '/') and
ws: true intercepts the development server's own Hot Module Replacement (HMR) WebSocket and forwards it to the proxy target. This results in the leakage of the browser's cookies and Origin header to the backend and bypasses the development server's Host/Origin validation. Additionally, this causes corruption of the HMR socket as both the HMR and the proxy attempt to write to the same socket.Recommendations
Update to version 5.2.5.
Scope user-defined proxy context to specific paths instead of '/'.
Omit
ws: true from the proxy entry when WebSocket forwarding is not required.Exploit
Fix
DoS
Origin Validation Error
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Webpack-Dev-Server