Skip to main content
Vulnerability Database/CVE-2026-114348

CVE-2026-114348: webpack-dev-server Information Disclosure

CVE-2026-114348 is an information disclosure flaw in webpack-dev-server that exposes filesystem paths and module locations through malformed Host headers. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114348 Overview

CVE-2026-114348 is an information disclosure vulnerability in webpack-dev-server, a development server that provides live reloading for webpack projects. The flaw affects versions 5.1.0 through 5.2.6 and version 6.0.0. The unauthenticated open-editor endpoint validates the Host header using a regular expression intended for browser Origin schemes. A Host value beginning with file: or another extension scheme short-circuits the hostname and allowedHosts checks, bypassing the intended network restrictions. The weakness is categorized under [CWE-209: Information Exposure Through an Error Message].

Critical Impact

A network peer that can reach the dev server can trigger stack traces that reveal absolute filesystem paths, installed module locations, and internal source line numbers.

Affected Products

  • webpack-dev-server versions 5.1.0 through 5.2.6
  • webpack-dev-server version 6.0.0
  • Development environments exposing the dev server to reachable network peers

Discovery Timeline

  • 2026-10-22 - CVE CVE-2026-114348 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114348

Vulnerability Analysis

The open-editor endpoint in webpack-dev-server is unauthenticated and reachable by any network peer that can connect to the dev server. Its Host header validation reuses a regular expression designed for browser Origin schemes. That regex treats values starting with file: or arbitrary extension schemes as valid, causing the hostname and allowedHosts enforcement to short-circuit.

Once the malformed Host passes validation, the endpoint attempts to construct a URL from the attacker-controlled value. The URL constructor throws an exception that is not caught at the request boundary. In the default non-production mode, the server returns an HTTP 500 response whose body contains the full exception stack trace. The server process continues to run, so there is no denial of service outcome.

Root Cause

The root cause is improper input validation of the Host header combined with verbose error handling. The validation regex was authored for Origin scheme matching and does not enforce the stricter rules required for Host header parsing. Unhandled parsing failures then surface internal diagnostic data to the requester, matching the CWE-209 pattern of exposing sensitive information through error messages.

Attack Vector

Exploitation requires only network reachability to the dev server. An attacker sends an HTTP request to the open-editor endpoint with a crafted Host header beginning with file: or a similar scheme prefix. The malformed value bypasses the hostname and allowedHosts checks, reaches the URL construction logic, and triggers an exception. The returned stack trace discloses absolute filesystem paths, installed module locations, and internal source line numbers that aid further reconnaissance against the developer workstation or build host.

Detection Methods for CVE-2026-114348

Indicators of Compromise

  • HTTP requests to the open-editor endpoint containing Host header values beginning with file: or non-standard scheme prefixes.
  • HTTP 500 responses from webpack-dev-server whose bodies include stack traces, absolute filesystem paths, or node_modules references.
  • Unexpected inbound connections to developer workstations or CI build hosts on the configured dev server port.

Detection Strategies

  • Inspect dev server access logs for requests to /open-editor paired with anomalous Host headers.
  • Alert on outbound HTTP 500 responses from development servers that include stack trace content.
  • Monitor for webpack-dev-server package versions in the vulnerable range across developer and build environments.

Monitoring Recommendations

  • Instrument the dev server with request logging that captures the Host header for forensic review.
  • Track package manifests in source repositories and CI pipelines to flag webpack-dev-server versions 5.1.0 through 5.2.6 and 6.0.0.
  • Correlate network telemetry to identify dev server ports exposed beyond localhost or trusted development subnets.

How to Mitigate CVE-2026-114348

Immediate Actions Required

  • Upgrade webpack-dev-server to version 5.2.7 or 6.1.0 or later across all projects and CI jobs.
  • Audit developer workstations and build hosts for dev server instances bound to non-loopback interfaces.
  • Rotate or review any credentials, tokens, or path references that may have been exposed through prior stack traces.

Patch Information

The maintainers fixed the issue in webpack-dev-server5.2.7 and 6.1.0. The fix corrects the Host header validation so that values with file: or extension scheme prefixes no longer bypass the hostname and allowedHosts checks. Details are available in the GitHub Security Advisory GHSA-wqhc-fvfg-56q6 and the OpenJS Foundation Security Advisories.

Workarounds

  • Bind the dev server to localhost only and avoid exposing it on routable network interfaces.
  • Restrict access to the dev server port with host-based firewall rules until the upgrade is applied.
  • Run the dev server in production mode where feasible to suppress verbose error bodies, or disable the open-editor endpoint if not required.
bash
# Configuration example
npm install webpack-dev-server@^5.2.7
# or for the v6 line
npm install webpack-dev-server@^6.1.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.