CVE-2018-14731: Infoleak

Published Sep 21, 2018
·
Updated

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

1 affected component
Parceljs Parcel

Event History

Sep 21, 2018
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

Who is affected by CVE-2018-14731?

Developers using Parcel parcel-bundler with Hot Module Replacement enabled are affected by CVE-2018-14731.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203