High severity · published Sep 21, 2018
CVE-2018-14731
An issue was discovered in HMRServer.js in Parcel parcel-bundler
7.5
CVSS
2.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.3% · higher than 83% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PA
Parcel · Parceljs
All versions, or not specified · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-14731
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-14731
Exploit
https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages
Vendor Advisory
https://github.com/parcel-bundler/parcel/issues/1783
Exploit
https://github.com/parcel-bundler/parcel/pull/1794
More from Parcel
6.5
CVE-2025-56648
npm parcel 2.0.0-alpha and before has an Origin Validation Error vulnerability
