CVE-2018-14732: Missing Origin Validation in webpack-dev-server

webpack-dev-server Updated 02 Oct 2025

Summary

04/01/2019
Yes i
High
7.5

CVE-2018-14732: Missing Origin Validation in webpack-dev-server. Affects webpack-dev-server versions < 3.1.11. Fixed in 3.1.11. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The webpack-dev-server is a development server that provides live reloading and hot module replacement (HMR) capabilities for webpack. It allows developers to quickly test and iterate on their code during the development process. However, versions of webpack-dev-server before 3.1.10 are vulnerable to a missing origin validation issue on the websocket server used for HMR.

Vulnerability Detail

The missing origin validation vulnerability in webpack-dev-server allows a remote attacker to steal a developer's source code. This occurs because the origin of requests to the websocket server used for HMR is not properly validated. By exploiting this vulnerability, an attacker can send malicious requests to the websocket server and gain unauthorized access to the developer's source code. This can lead to the exposure of sensitive information and potential compromise of the entire application.

How To Fix

Latest published version: 6.1.0 as of 22 Oct 2026

npm install webpack-dev-server@6.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.1.11

This is the first release that contains the fix.

npm install webpack-dev-server@3.1.11

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability other than updating to the fixed version of webpack-dev-server.

Conclusion

The missing origin validation vulnerability in webpack-dev-server can lead to the theft of a developer's source code and potential compromise of the entire application. It is crucial to update to version 3.1.11 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for webpack-dev-server →

Share this vulnerability

FAQ

webpack-dev-server is a development server that provides live reloading and hot module replacement capabilities for webpack. It allows developers to test and iterate on their code during the development process.

This vulnerability allows a remote attacker to steal a developer's source code, potentially exposing sensitive information and compromising the entire application.

To fix this vulnerability, update webpack-dev-server to version 3.1.11 or later.

There are no known workarounds for this vulnerability other than updating to the fixed version of webpack-dev-server.

Related vulnerabilities

Recent vulnerabilities recorded for webpack-dev-server.

How To Fix

Latest published version: 6.1.0 as of 22 Oct 2026

npm install webpack-dev-server@6.1.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.1.11

This is the first release that contains the fix.

npm install webpack-dev-server@3.1.11

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback