Vulnerabilities in pkg:npm/webpack-dev-server
PACKAGECVE-2026-14631 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Webpack dev server libraries in the npm ecosystem. The issue involves webpack-dev-server vulnerable to denial of service via a malformed host or origin header. Remediation is available by upgrading affected packages to version 5.2.6.
pkg:npm/webpack-dev-server
Vulnerability advisories affecting package pkg:npm/webpack-dev-server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-m28w-2pqf-7qgj | CVE-2026-14631 | MODERATE | webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header |
| GHSA-f5vj-f2hx-8m93 | CVE-2026-14620 | MODERATE | webpack-dev-server vulnerable to cross-site request forgery via internal developer endpoints |
| GHSA-mx8g-39q3-5c79 | CVE-2026-9595 | MODERATE | webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies |
| GHSA-79cf-xcqc-c78w | CVE-2026-6402 | MODERATE | webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins |
| GHSA-9jgg-88mc-972h | CVE-2025-30360 | MODERATE | webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based browser |
| GHSA-4v9v-hfq4-rm2v | CVE-2025-30359 | MODERATE | webpack-dev-server users' source code may be stolen when they access a malicious web site |
| GHSA-cf66-xwfp-gvc4 | CVE-2018-14732 | HIGH | Missing Origin Validation in webpack-dev-server |
CVE-2026-14631 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-14631
To remediate this vulnerability, upgrade all affected Webpack dev server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install webpack-dev-server@5.2.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls webpack-dev-server
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-14631, inspect your project dependencies using npm:
npm ls webpack-dev-server
Analyze the terminal output to locate any version of Webpack dev server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.6), your application is affected.
Note: The npm ls webpack-dev-server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Webpack dev server, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-14631 Affected Webpack dev server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webpack-dev-server
|
npm |
< 5.2.6
|
5.2.6
|
References
Frequently Asked Questions
What is CVE-2026-14631?
Which Webpack dev server versions are affected?
What version fixes CVE-2026-14631?
Is webpack-dev-server affected?
What is the CVSS score of CVE-2026-14631?
What CWE is associated with CVE-2026-14631?
How can I check npm dependencies for CVE-2026-14631?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m28w-2pqf-7qgj",
"modified" : "2026-07-20T22:02:31Z",
"published" : "2026-07-20T22:02:31Z",
"aliases" : [ "CVE-2026-14631" ],
"summary" : "webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header",
"details" : "### Impact\n\nAn unauthenticated peer that can reach the `webpack-dev-server` process can terminate it by sending either a normal HTTP request with a malformed `Host` header, or a WebSocket upgrade to the default `/ws` endpoint with a malformed `Origin` header. The malformed header triggers an uncaught exception in the host-validation path and crashes the dev server process.\n\n### Patches\n\nFixed in `webpack-dev-server` 5.2.6 by treating malformed `Host` and `Origin` header values as invalid rather than throwing (see [PR #5699](https://github.com/webpack/webpack-dev-server/pull/5699)).\n\n### Workarounds\n\nKeep the dev server bound to `localhost` (the default) and do not expose it to untrusted networks.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "webpack-dev-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.2.6"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.2.5"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-m28w-2pqf-7qgj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-14631"
}, {
"type" : "WEB",
"url" : "https://github.com/webpack/webpack-dev-server/pull/5699"
}, {
"type" : "WEB",
"url" : "https://github.com/webpack/webpack-dev-server/commit/f21ed0f44aceb6132abb591ee8b60d770b6e489f"
}, {
"type" : "WEB",
"url" : "https://cna.openjsf.org/security-advisories.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/webpack/webpack-dev-server"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-248" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-20T22:02:31Z",
"nvd_published_at" : "2026-07-03T18:16:24Z"
}
}