CVE-2018-14732Webpack.js Webpack-dev-server
High 7.5 No auth needed
Follow: this CVE · Webpack.js · Webpack.js Webpack-dev-server We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.5% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Sep 21, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Webpack-dev-server.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | webpack-dev-server |
< 3.1.11 |
3.1.11 |
npm install webpack-dev-server@3.1.11 |
Per OSV / GitHub Advisories (GHSA-cf66-xwfp-gvc4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| webpack.js | webpack-dev-server | < 3.1.6 |
Official sources
References
Links published by the sources. Open them with care.
- blog.cal1.cn Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory