{"id":"CVE-2018-14732","published":"2018-09-21T17:00:00Z","modified":"2024-08-05T09:38:13Z","title":"An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02486,"percentile":0.8501,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/webpack/webpack-dev-server/issues/1445","tags":["x_refsource_CONFIRM"]},{"url":"https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages","tags":["x_refsource_MISC"]},{"url":"https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":17.0}]},"affected":[{"ecosystem":"npm","package":"webpack-dev-server","vulnerableRanges":["<3.1.11"],"patched":["3.1.11"],"from":["GHSA-cf66-xwfp-gvc4"],"provenance":"source"}],"summary":{"text":"An issue in lib/Server.js of webpack-dev-server, affecting versions before 3.1.6, lets the WebSocket server used for Hot Module Replacement accept connections without checking the request origin. Exploitation requires that a developer's webpack-dev-server instance is running and reachable at its local WebSocket address, after which an attacker-controlled page from any origin can connect and receive HMR messages, exposing the developer's code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:01Z"},"euvd":{"id":"EUVD-2019-0183","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-webpack-dev-server-cve-2018-14732","children":[{"from":"CVE-2018-14732","to":"CVE-2025-30360","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"An attacker can obtain source code via a method similar to that used to exploit CVE-2018-14732.","from":"CVE.org","in":"CVE-2025-30360"},{"kind":"same-code","provenance":"machine","files":["lib/Server.js"],"commits":["https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10","https://github.com/webpack/webpack-dev-server/commit/5c9378bb01276357d7af208a0856ca2163db188e","https://github.com/webpack/webpack-dev-server/commit/72efaab83381a0e1c4914adf401cbd210b7de7eb"],"basis":"shared file"}]}]}}