CVE-2018-14731: Infoleak
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2018-14731?
CVE-2018-14731 is considered to be of medium severity due to the potential for unauthorized code access.
How do I fix CVE-2018-14731?
To fix CVE-2018-14731, ensure you are using a patched version of the Parcel bundler that includes checks for WebSocket request origins.
Who is affected by CVE-2018-14731?
Developers using Parcel parcel-bundler with Hot Module Replacement enabled are affected by CVE-2018-14731.
What kind of attack does CVE-2018-14731 enable?
CVE-2018-14731 enables attackers to potentially sniff and steal developer's code through unchecked WebSocket connections.
Is CVE-2018-14731 a local or remote vulnerability?
CVE-2018-14731 is a remote vulnerability as it can be exploited over the network without direct access to the target system.