CVE-2018-14732 · mitre
CVE-2018-14732
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 2018-09-21, last changed 2026-06-17. Weakness: CWE-20.
How to fix
Upgrade to a fixed version: webpack-dev-server 3.1.11 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in webpack/webpack-dev-server by f18e5adf12, 0e1f0c1b74. Functions changed by the fix: checkHost, listen. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2018-09-21 | Published |
| 2019-01-04 | Package advisory GHSA-cf66-xwfp-gvc4 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.49% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-cf66-xwfp-gvc4 | webpack-dev-server (npm) | 3.1.11 |
Also known as: GHSA-cf66-xwfp-gvc4
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-14631 | 2026-07-03 | 5.3 | webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header |
| CVE-2026-14620 | 2026-07-03 | 4.7 | webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints |
| CVE-2026-9595 | 2026-06-15 | 4.3 | webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies |
| CVE-2026-6402 | 2026-05-12 | 6.5 | webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins |
| CVE-2025-30360 | 2025-06-03 | 6.5 | webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based browser |
| CVE-2025-30359 | 2025-06-03 | 5.9 | webpack-dev-server users' source code may be stolen when they access a malicious web site |
| CVE-2026-106804 | 2026-11-02 | 7.5 | same weakness (CWE-20) from the same CNA (mitre) |
| CVE-2025-71383 | 2026-10-06 | 9.8 | same weakness (CWE-20) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-14732, or call /api/v1/vulnerabilities/CVE-2018-14732. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.