{"id":"CVE-2018-14732","aliases":["CLSA-2026-1784683093","EUVD-2019-0183","GHSA-cf66-xwfp-gvc4"],"status":"published","title":"Missing Origin Validation in webpack-dev-server","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.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02486,"percentile":0.84736,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2018-09-21T17:00:00Z","modified":"2026-10-20T10:50:05Z","fixes":[{"ecosystem":"npm","package":"webpack-dev-server","fixed_in":["3.1.11"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"webpack-dev-server","fixed_in":["2.7.1-tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"webpack-dev-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.11"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.7.1-tuxcare.0"},{"fixed":"2.7.1-tuxcare.1"}]}],"versions":["2.7.1"]},{"source":"osv","ecosystem":"npm","package":"webpack-dev-server","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.11"}]}]}],"products":[{"vendor":"webpack.js","product":"webpack-dev-server"}],"references":[{"url":"https://github.com/webpack/webpack-dev-server/issues/1445","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-14732","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/725","tags":["web"]},{"url":"https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#3111-2018-12-21","tags":["web"]},{"url":"https://github.com/webpack/webpack-dev-server/issues/1620","tags":["web"]},{"url":"https://github.com/advisories/GHSA-cf66-xwfp-gvc4"},{"url":"https://github.com/webpack/webpack-dev-server","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-14732","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.","status":"published","published":"2018-09-21T17:00:00Z","modified":"2024-08-05T09:38:13.243Z","updated_at":"2026-11-02T14:35:00.589142Z"}],"euvd":[{"id":"EUVD-2019-0183","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.","status":"published","published":"2018-09-21T17:00:00Z","modified":"2024-08-05T09:38:13Z","updated_at":"2026-11-03T02:39:45.703245Z"}],"ghsa":[{"id":"GHSA-cf66-xwfp-gvc4","title":"Missing Origin Validation in webpack-dev-server","description":"Versions of `webpack-dev-server` before 3.1.10 are missing origin validation on the websocket server. This vulnerability allows a remote attacker to steal a developer's source code because the origin of requests to the websocket server that is used for Hot Module Replacement (HMR) are not validated.\n\n\n## Recommendation\nFor `webpack-dev-server` update to version 3.1.11 or later.","status":"published","published":"2019-01-04T17:40:59Z","modified":"2023-01-09T05:03:00Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:36:04.396827Z"}],"nvd":[{"id":"CVE-2018-14732","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.","status":"published","published":"2018-09-21T17:29:05.373Z","modified":"2026-06-17T01:41:32.18Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:04:40.661264Z"}],"osv":[{"id":"CVE-2018-14732","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.","status":"published","published":"2018-09-21T17:29:05.373Z","modified":"2026-10-20T10:50:05.151498974Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:08.242347Z"},{"id":"GHSA-cf66-xwfp-gvc4","title":"Missing Origin Validation in webpack-dev-server","description":"Versions of `webpack-dev-server` before 3.1.10 are missing origin validation on the websocket server. This vulnerability allows a remote attacker to steal a developer's source code because the origin of requests to the websocket server that is used for Hot Module Replacement (HMR) are not validated.\n\n\n## Recommendation\nFor `webpack-dev-server` update to version 3.1.11 or later.","status":"published","published":"2019-01-04T17:40:59Z","modified":"2023-11-08T03:59:56.988012Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:44.927642Z"},{"id":"CLSA-2026-1784683093","title":"TuxCare security update for webpack-dev-server (1 CVE)","description":"TuxCare rebuilt webpack-dev-server to address 1 CVE. Fixed in 2.7.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:47Z","modified":"2026-10-15T09:47:54.408967167Z","updated_at":"2026-11-02T15:43:46.482572Z"}]}}
