CVE-2026-14631: webpack-dev-server Denial of Service via Malformed Headers
webpack-dev-server versions 5.2.5 and earlier can be crashed by an unauthenticated attacker sending a specially crafted HTTP request or WebSocket upgrade message. The vulnerability exists in the host validation logic, which fails to handle malformed headers gracefully. When triggered, it terminates the entire Node.js process running the dev server, causing a denial of service. This affects only development environments and does not expose sensitive data or allow code execution.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses (CWE)
- CWE-20, CWE-248
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-03 / 2026-07-07
NVD description (verbatim)
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.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability resides in webpack-dev-server's host validation middleware, which processes the Host header (HTTP) and Origin header (WebSocket upgrade). When an unauthenticated peer sends a request or upgrade with a malformed header value, the validation code throws an uncaught exception rather than rejecting the request safely. The exception propagates up the call stack and crashes the Node.js process. The flaw is rooted in insufficient input sanitization (CWE-20) and missing exception handling (CWE-248). No authentication is required; the attacker needs only network reachability to the dev server port.
Business impact
Development team productivity is disrupted when the dev server crashes, requiring manual restart. In CI/CD environments, automated test pipelines or local development workflows may fail unexpectedly. The impact is confined to availability; no build artifacts, source code, or credentials are compromised. Repeated crashes could indicate a coordinated disruption but do not represent a data breach or supply chain risk.
Affected systems
webpack-dev-server 5.2.5 and all earlier versions are vulnerable. The vulnerability does not affect webpack 4.x or standalone webpack usage without the dev server. Organizations using webpack-dev-server in containerized or network-isolated development environments face lower practical risk. Exposure is highest when the dev server is bound to 0.0.0.0 or exposed to untrusted networks.
Exploitability
Exploitability is straightforward: an attacker with network access can send a single HTTP request with a malformed Host header (e.g., an invalid character sequence) or a WebSocket upgrade request with a malformed Origin header to the default /ws endpoint. No special tools, authentication, or user interaction are required. The attack is reliable and repeatable. However, the impact is limited to crashing the dev server process; it does not grant persistent access or escalate privileges.
Remediation
Upgrade webpack-dev-server to version 5.2.6 or later. For teams unable to patch immediately, configure the dev server to bind exclusively to localhost (127.0.0.1), which is the default behavior. Avoid exposing the dev server to untrusted networks or the public internet. Network segmentation and firewall rules that restrict access to development infrastructure are also effective interim mitigations.
Patch guidance
Apply the upgrade to webpack-dev-server 5.2.6 at your earliest convenience during the next dependency update cycle. Since this affects development environments rather than production, the patch can typically be deployed without complex change control, but verify compatibility with your project's webpack and Node.js versions. Update your package.json or lock file and redeploy the dev environment.
Detection guidance
Monitor dev server logs and process restart events for unexpected terminations. If your CI/CD platform logs build failures tied to dev server crashes, correlate those with incoming network traffic patterns (e.g., unusual HTTP requests with invalid headers). Intrusion detection rules can flag requests to the dev server port with malformed Host or Origin headers, though this is most practical in environments where the dev server is isolated to internal networks only.
Why prioritize this
This is a medium-severity availability issue that affects development workflows rather than production systems or end users. Prioritize patching based on your organization's tolerance for development disruptions. Teams with isolated, localhost-bound dev servers can deprioritize; those exposing dev servers to shared networks or the internet should patch more urgently. The CVSS 5.3 reflects the lack of confidentiality and integrity impact.
Risk score, explained
The CVSS 3.1 score of 5.3 (MEDIUM) accounts for a network-accessible attack vector with no authentication required and low attack complexity, but the impact is limited to availability (no data loss, no code execution). The score assumes the dev server is reachable; if properly isolated to localhost, real-world risk is lower.
Frequently asked questions
Can this vulnerability allow an attacker to steal my source code or credentials?
No. The vulnerability crashes the dev server but does not result in data disclosure, code execution, or unauthorized access. Your source code, environment variables, and credentials remain unexposed.
Do I need to patch if my dev server is only accessible on localhost?
Patching is still recommended for defense-in-depth and to prepare for configuration changes, but immediate risk is very low if the dev server is bound exclusively to 127.0.0.1 and firewall rules prevent external access.
Will upgrading to 5.2.6 break my build or require code changes?
No. The patch is a security fix to the host validation logic and does not change the webpack-dev-server API or configuration schema. Standard npm/yarn update commands should apply the patch without breaking changes.
What should I do if my team uses an older version of webpack-dev-server?
Check your project's package.json and upgrade to 5.2.6 or later. If you use webpack 4.x, verify that your webpack-dev-server major version is compatible; webpack 4 is typically paired with webpack-dev-server 3.x, which may require a separate security advisory review.
This analysis is based on the CVE record published on 2026-07-03 and modified on 2026-07-07. Verify patch version numbers and availability against the official webpack-dev-server GitHub repository and npm registry before deploying. This vulnerability affects development infrastructure only and does not directly impact production systems or end users. Organizations should test patches in non-production environments before rollout. SEC.co makes no warranty regarding the completeness or accuracy of this analysis and recommends independent validation of all security findings. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-45676MEDIUMOpenTelemetry eBPF Instrumentation ELF Parser Denial of Service
- CVE-2026-45685HIGHOpenTelemetry eBPF Instrumentation MongoDB Parser DoS (v0.1.0–0.8.x)
- CVE-2024-21944MEDIUMMemory Integrity Vulnerability in DIMM SPD Validation
- CVE-2025-5089MEDIUMArista EOS/CVX DoS via Malformed Messages
- CVE-2025-5090MEDIUMCVX CVE-2025-5090: Input Validation Flaw Leads to Agent Crashes and Denial of Service
- CVE-2025-58175MEDIUMGeoServer SSRF Vulnerability in Proxy Configuration
- CVE-2025-64719MEDIUMGogs Denial of Service via Unhandled Commit Errors
- CVE-2026-0018MEDIUMAndroid AccessibilityManagerService Denial of Service Vulnerability