Live threats

All CVEs / Webpack.js

CVE-2018-14732Webpack.js Webpack-dev-server

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Webpack-dev-server.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
webpack.jswebpack-dev-server< 3.1.6

Official sources

References

Links published by the sources. Open them with care.