CVE-2018-14731 Missing Origin Validation in parcel-bundler

High 7.5 Published Updated

Attackers can steal developer code by connecting to the Parcel HMR WebSocket server from any origin due to missing origin checks.

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-14731?

CVE-2018-14731 is a high-severity 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 HMRServer.js in Parcel parcel-bundler. 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 connection (with a random TCP port number) from any origin. The random port number can be found by connecting to http://127.0.0.1 and reading the "new WebSocket" line in the source code.

Weakness: CWE-200

Which versions are affected by CVE-2018-14731?

2 open source packages ship an affected version, including parcel-bundler. It affects 1 product.

PackageAffectedFixed in
parcel-bundler npmAll versions1.10.0
parcel-bundler npmAll versions1.10.0

Products include Parceljs Parcel.

How do I fix CVE-2018-14731?

Upgrade parcel-bundler to 1.10.0 or later.

Is CVE-2018-14731 being exploited?

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

Sources

Also known as GHSA-37q6-576q-vgr7.

Is CVE-2018-14731 in your software?

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

Check your SBOMs for free