CVE-2026-14631: webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header

Published Jul 3, 2026
·
Updated

Impact

An 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.

Patches

Fixed in webpack-dev-server 5.2.6 by treating malformed Host and Origin header values as invalid rather than throwing (see PR #5699).

Workarounds

Keep the dev server bound to localhost (the default) and do not expose it to untrusted networks.

Other sources

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.

— MITRE

Affected Software

3 affected componentsFixes available
webpack webpack-dev-server<=5.2.5
webpack.js webpack-dev-server<5.2.6
npm/webpack-dev-server<=5.2.5
5.2.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/webpack-dev-server to a version that resolves this vulnerability.

    Fixed in 5.2.6
  2. Upgrade

    Upgrade webpack-dev-server to a version that resolves this vulnerability.

    Fixed in 5.2.6Patch PR #5699
  3. Configuration

    Keep webpack-dev-server bound to localhost (default) and do not expose it to untrusted networks.

    webpack-dev-server host binding = localhost

Event History

Jul 3, 2026
CVE Published
via MITRE·05:23 PM
Data Sourced
via MITRE·05:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 20, 2026
Advisory Published
via GitHub·10:02 PM
Data Sourced
via GitHub·10:02 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-14631?

The severity of CVE-2026-14631 is medium, with a rating of 5.3.

2

How does CVE-2026-14631 affect webpack-dev-server?

CVE-2026-14631 affects webpack-dev-server by allowing an unauthenticated peer to terminate the Node.js process via malformed Host or Origin headers.

3

What versions of webpack-dev-server are vulnerable to CVE-2026-14631?

webpack-dev-server versions 5.2.5 and earlier are vulnerable to CVE-2026-14631.

4

How can I mitigate the risks associated with CVE-2026-14631?

To mitigate CVE-2026-14631, upgrade to a patched version of webpack-dev-server after 5.2.5.

5

What impact does a denial of service have in relation to CVE-2026-14631?

A denial of service impact from CVE-2026-14631 results in the complete termination of the Node.js process, disrupting service availability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203