Vulnerability Details : CVE-2018-14731
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.
Vulnerability category: Information leak
Products affected by CVE-2018-14731
- cpe:2.3:a:parceljs:parcel:-:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-14731
0.19%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 56 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2018-14731
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2018-14731
-
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-14731
-
https://github.com/parcel-bundler/parcel/issues/1783
A vulnerability found in parcel-bundler · Issue #1783 · parcel-bundler/parcel · GitHubVendor Advisory
-
https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages
Sniffing Codes in Hot Module Reloading Messages - crblogExploit;Third Party Advisory
-
https://github.com/parcel-bundler/parcel/pull/1794
Fix security vulnerability by DeMoorJasper · Pull Request #1794 · parcel-bundler/parcel · GitHubExploit;Patch;Vendor Advisory
Jump to