Description
webpack-dev-server versions 5.2.5 and earlier terminate the whole Node.js process when an unauthenticated peer sends 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 value causes an uncaught exception in the host-validation path and crashes the dev server. Impact is limited to availability of the development server, no data disclosure, no code execution. Patches: upgrade to webpack-dev-server 5.2.6. Workarounds: keep the dev server bound to localhost (the default) and do not expose it to untrusted networks.
Published: 2026-07-03
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

webpack-dev-server versions 5.2.5 and earlier are vulnerable to a crash when an unauthenticated client sends a normal HTTP request with a malformed Host header or initiates a WebSocket upgrade to the default /ws endpoint using a malformed Origin header. The bad header value triggers an uncaught exception in the host-validation logic, causing the entire Node.js process that hosts the server to terminate. The flaw only affects the availability of the development server; it does not expose data or enable code execution.

Affected Systems

The vulnerability applies to all releases of webpack-dev-server up to and including version 5.2.5. Affected deployments may be any Node.js environment that runs the development server and has it exposed to traffic. Upgrading to 5.2.6 or later removes the crash condition, while keeping the server bound to localhost (the default configuration) limits exposure to local developers only.

Risk and Exploitability

An attacker only requires network access to the exposed development server and no authentication to trigger the crash. The CVSS score of 5.3 indicates moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. If the server is reachable from untrusted networks, a crafted HTTP or WebSocket request with a malformed Host or Origin header can reliably cause the server to stop.

Generated by OpenCVE AI on July 21, 2026 at 09:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade webpack-dev-server to version 5.2.6 or newer, which resolves the improper input validation and unhandled exception logic.
  • Maintain the default localhost binding so the development server remains accessible only to the local machine.
  • If external access is necessary, place the server behind a firewall or reverse‑proxy that rejects requests containing malformed Host or Origin headers.

Generated by OpenCVE AI on July 21, 2026 at 09:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-m28w-2pqf-7qgj webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header
History

Mon, 06 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 03 Jul 2026 17:45:00 +0000

Type Values Removed Values Added
Description webpack-dev-server versions 5.2.5 and earlier terminate the whole Node.js process when an unauthenticated peer sends 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 value causes an uncaught exception in the host-validation path and crashes the dev server. Impact is limited to availability of the development server, no data disclosure, no code execution. Patches: upgrade to webpack-dev-server 5.2.6. Workarounds: keep the dev server bound to localhost (the default) and do not expose it to untrusted networks.
Title webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header
Weaknesses CWE-20
CWE-248
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-07-06T15:54:11.285Z

Reserved: 2026-07-03T17:15:55.995Z

Link: CVE-2026-14631

cve-icon Vulnrichment

Updated: 2026-07-06T15:54:07.668Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-03T17:23:41Z

Links: CVE-2026-14631 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T10:00:04Z

Weaknesses