CVE-2018-14731
HIGH 7.5CVSS 3.0Missing Origin Validation in parcel-bundler
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.
- Published
- 21 Sep 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-37q6-576q-vgr7
- Sources
- NVDJSONOSV GHSA-37q6-576q-vgr7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | parceljs | parcelcpe:2.3:a:parceljs:parcel:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | npm | parcel-bundler | < 1.10.0 | 1.10.0 |
References
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages · Exploit, Third Party Advisory, WEB
- https://github.com/parcel-bundler/parcel/issues/1783 · Vendor Advisory, WEB
- https://github.com/parcel-bundler/parcel/pull/1794 · Exploit, Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-14731 · ADVISORY
- https://github.com/parcel-bundler/parcel/commit/066e0bf6bd26b15c78bd47df023452e4b20073e4 · WEB
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages) · WEB
- https://github.com/advisories/GHSA-37q6-576q-vgr7 · ADVISORY
- https://github.com/parcel-bundler/parcel · PACKAGE
- https://www.npmjs.com/advisories/721 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 21 Sep 2018)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 30 Oct 2018)