Live threats

All CVEs / Parceljs

CVE-2018-14731Parceljs Parcel

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Sep 21, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
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 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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Parcel.
  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 parcel-bundler < 1.10.0 1.10.0 npm install parcel-bundler@1.10.0

Per OSV / GitHub Advisories (GHSA-37q6-576q-vgr7). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
parceljsparcelall

Official sources

References

Links published by the sources. Open them with care.