CVE-2018-14731

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductParcel
PublishedSep 21, 2018
First seenSep 21, 2018

How to fix

Update
  • parcel-bundler1.10.0 or later

Affected products

ProductAffected versionsFixed in
parceljs parcelNo range specified—
parcel-bundlernpmv < 1.10.01.10.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.