{"id":"CVE-2025-30360","published":"2025-06-03T17:41:59Z","modified":"2025-06-03T17:58:12Z","title":"webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based…","vendor":"webpack","product":"webpack-dev-server","tier":"tail","description":{"text":"webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when you access a malicious web site with non-Chromium based browser. The `Origin` header is checked to prevent Cross-site WebSocket hijacking from happening, which was reported by CVE-2018-14732. But webpack-dev-server always allows IP address `Origin` headers. This allows websites that are served on IP addresses to connect WebSocket. An attacker can obtain source code via a method similar to that used to exploit CVE-2018-14732. Version 5.2.1 contains a patch for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00357,"percentile":0.2946,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-9jgg-88mc-972h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/webpack/webpack-dev-server/commit/5c9378bb01276357d7af208a0856ca2163db188e","tags":["x_refsource_MISC"]},{"url":"https://github.com/webpack/webpack-dev-server/commit/72efaab83381a0e1c4914adf401cbd210b7de7eb","tags":["x_refsource_MISC"]},{"url":"https://github.com/webpack/webpack-dev-server/blob/55220a800ba4e30dbde2d98785ecf4c80b32f711/lib/Server.js#L3113-L3127","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":5.89},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"webpack","affectedVersions":[{"vendor":"webpack","product":"webpack-dev-server","versions":["< 5.2.1"]}],"affected":[{"ecosystem":"npm","package":"webpack-dev-server","vulnerableRanges":["<5.2.1"],"patched":["5.2.1"],"from":["GHSA-9jgg-88mc-972h"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-16764","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-webpack-dev-server-cve-2018-14732","parents":[{"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":"rarely changed file"}]}],"children":[{"from":"CVE-2025-30360","to":"CVE-2026-6402","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-79cf-xcqc-c78w","via":"reference","url":"https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-9jgg-88mc-972h"},{"kind":"version-step","provenance":"source","package":"npm:webpack-dev-server","fromFixed":"5.2.1","toFixed":"5.2.4","daysApart":343}]}],"packageHistory":[{"cve":"CVE-2018-14732","published":"2018-09-21","fixed":"3.1.11","kev":false},{"cve":"CVE-2025-30359","published":"2025-06-03","fixed":"5.2.1","kev":false},{"cve":"CVE-2025-30360","published":"2025-06-03","fixed":"5.2.1","kev":false},{"cve":"CVE-2026-6402","published":"2026-05-12","fixed":"5.2.4","kev":false},{"cve":"CVE-2026-9595","published":"2026-06-15","fixed":"5.2.5","kev":false},{"cve":"CVE-2026-14620","published":"2026-07-03","fixed":"5.2.6","kev":false}],"package":"npm:webpack-dev-server"}}