CVE-2018-14732
HIGH 7.5CVSS 3.0Missing Origin Validation in webpack-dev-server
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.
- Published
- 21 Sep 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-cf66-xwfp-gvc4
- Sources
- NVDJSONOSV GHSA-cf66-xwfp-gvc4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | webpack.js | webpack-dev-servercpe:2.3:a:webpack.js:webpack-dev-server:*:*:*:*:*:*:*:* |
< 3.1.6 | 3.1.6 |
| OSV | npm | webpack-dev-server | < 3.1.11 | 3.1.11 |
References
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages · Exploit, Third Party Advisory
- https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10 · Patch, Third Party Advisory, WEB
- https://github.com/webpack/webpack-dev-server/issues/1445 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-14732 · ADVISORY
- https://github.com/webpack/webpack-dev-server/issues/1620 · WEB
- https://github.com/webpack/webpack-dev-server · PACKAGE
- https://github.com/webpack/webpack-dev-server/blob/master/CHANGELOG.md#3111-2018-12-21 · WEB
- https://www.npmjs.com/advisories/725 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 21 Sep 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jan 2019)