CVE-2018-14732 Missing Origin Validation in webpack-dev-server

High 7.5 Published Updated

Attackers can steal developer code by connecting to the WebSocket server from any origin due to missing origin checks in webpack-dev-server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-14732?

CVE-2018-14732 is a high-severity missing authorization vulnerability in n/a, published on 21 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2018-14732?

2 open source packages ship an affected version, including webpack-dev-server. It affects 1 product.

PackageAffectedFixed in
webpack-dev-server npmAll versions3.1.11
webpack-dev-server npmAll versions3.1.11

Products include Webpack.js Webpack-Dev-Server.

How do I fix CVE-2018-14732?

Upgrade webpack-dev-server to 3.1.11 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2018-14732 being exploited?

There is no known exploitation of CVE-2018-14732 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1784683093, GHSA-cf66-xwfp-gvc4.

Is CVE-2018-14732 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free