CVE-2018-14731
Last modified
CVE-2018-14731 is a vulnerability of currently unknown severity. 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). EPSS estimates a 2.33% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Parceljs | Parcel | All versions |
References
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20MessagesExploit, Third Party Advisory
- https://github.com/parcel-bundler/parcel/issues/1783Vendor Advisory
- https://github.com/parcel-bundler/parcel/pull/1794Exploit, Patch, Vendor Advisory
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20MessagesExploit, Third Party Advisory
- https://github.com/parcel-bundler/parcel/issues/1783Vendor Advisory
- https://github.com/parcel-bundler/parcel/pull/1794Exploit, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2018-14731?
How severe is CVE-2018-14731?
How do I fix CVE-2018-14731?
Are you affected by CVE-2018-14731?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
