Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Webpack.Js | Webpack-Dev-Server | < 3.1.6 |
Related Weaknesses (CWE)
References
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20MesExploitThird Party Advisory
- https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1caPatchThird Party Advisory
- https://github.com/webpack/webpack-dev-server/issues/1445ExploitThird Party Advisory
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20MesExploitThird Party Advisory
- https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1caPatchThird Party Advisory
- https://github.com/webpack/webpack-dev-server/issues/1445ExploitThird Party Advisory
FAQ
What is CVE-2018-14732?
CVE-2018-14732 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 i...
How severe is CVE-2018-14732?
CVE-2018-14732 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2018-14732?
Check the references section above for vendor advisories and patch information. Affected products include: Webpack.Js Webpack-Dev-Server.