Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. webpack-dev-server
  4. ›
  5. CVE-2018-14732

CVE-2018-14732: Improper Input Validation

September 21, 2018 (updated August 1, 2019)

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

References

  • nvd.nist.gov/vuln/detail/CVE-2018-14732

Code Behaviors & Features

Detect and mitigate CVE-2018-14732 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.6

Fixed versions

  • 3.1.6

Solution

Upgrade to version 3.1.6 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

npm/webpack-dev-server/CVE-2018-14732.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:41 +0000.