First published: Fri Sep 21 2018(Updated: )
An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. Attackers are able to steal developer's code because the origin of requests is not checked by the WebSocket server, which is used for HMR (Hot Module Replacement). Anyone can receive the HMR message sent by the WebSocket server via a ws://127.0.0.1:8080/ connection from any origin.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
webpack | <3.1.6 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2018-14732 is considered a medium severity vulnerability.
To fix CVE-2018-14732, upgrade webpack-dev-server to version 3.1.6 or later.
CVE-2018-14732 affects versions of webpack-dev-server prior to 3.1.6.
The impact of CVE-2018-14732 allows attackers to potentially steal developer's code via unverified WebSocket connections.
Any attacker on the same network can exploit CVE-2018-14732 due to the lack of origin checks on WebSocket requests.