CVE-2018-14731Parceljs Parcel
High 7.5 No auth needed
Follow: this CVE · Parceljs · Parceljs Parcel We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.3% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Sep 21, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Parcel.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | parcel-bundler |
< 1.10.0 |
1.10.0 |
npm install parcel-bundler@1.10.0 |
Per OSV / GitHub Advisories (GHSA-37q6-576q-vgr7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| parceljs | parcel | all |
Official sources
References
Links published by the sources. Open them with care.
- blog.cal1.cn Exploit Third Party Advisory
- github.com Vendor Advisory
- github.com Exploit Patch Vendor Advisory