CVE-2018-14730 Missing Origin Validation in browserify-hmr
Attackers can steal developer code by connecting to the HMR WebSocket server from any origin due to missing origin checks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-14730?
CVE-2018-14730 is a high-severity vulnerability in n/a, published on 21 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Browserify-HMR. 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:3123/ connection from any origin.
Weakness: CWE-200
Which versions are affected by CVE-2018-14730?
2 open source packages ship an affected version, including browserify-hmr. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
browserify-hmr npm | All versions | 0.4.0 |
browserify-hmr npm | All versions | 0.4.0 |
Products include Browserify-Hot Module Replacement Project Browserify-Hot Module Replacement.
How do I fix CVE-2018-14730?
Upgrade browserify-hmr to 0.4.0 or later.
Is CVE-2018-14730 being exploited?
There is no known exploitation of CVE-2018-14730 in the wild and no public exploit code.
Sources
Also known as GHSA-77q4-m83q-w76v.