Description
webpack-dev-server is a development server that provides live reloading for webpack projects. In versions from 5.1.0 before 5.2.7 and in version 6.0.0, the unauthenticated open-editor endpoint validates the Host header with a regular expression meant for browser Origin schemes, so a Host value beginning with file: or with an extension scheme short-circuits the hostname and allowedHosts checks. A network peer that can reach the dev server can send a request with a malformed Host that passes validation and then causes the endpoint's URL construction to throw, and in the default non-production mode the server returns an HTTP 500 body containing the full exception stack trace, which discloses absolute filesystem paths, installed module locations, and internal source line numbers. The server keeps running, so there is no denial of service. The issue is fixed in webpack-dev-server 5.2.7 and 6.1.0, and users should upgrade to one of those versions or later.
Published: 2026-10-22
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information Disclosure via Host header validation bypass
Action: Patch
AI Analysis

Impact

The vulnerability lies in the open-editor endpoint of webpack-dev-server, where the Host header is incorrectly validated using a regular expression intended for browser Origin schemes. An unauthenticated attacker who can reach the development server can send a crafted Host value beginning with file: or an extension scheme, which bypasses the hostname and allowedHosts checks. This causes the endpoint to construct an invalid URL, raising an exception. In non‑production mode the server returns a 500 response containing the full exception stack trace, revealing absolute filesystem paths, module locations, and internal source line numbers. The impact is the disclosure of potentially sensitive information without causing service disruption.

Affected Systems

Affected products include webpack-dev-server. Versions from 5.1.0 up to, but not including, 5.2.7, and version 6.0.0, are vulnerable. The issue is resolved in webpack-dev-server 5.2.7 and in 6.1.0 and later. Users of any affected releases should apply the corresponding upgrade.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, and the exploit is feasible over the network with no authentication required. The EPSS score is currently unavailable, and the vulnerability is not listed in CISA KEV. Because the exploit path is simple—sending a single HTTP request from any network peer—the risk to environments that expose development servers to untrusted networks is significant. Upgrades or mitigations are advised promptly to prevent accidental disclosure of internal filesystem and code details.

Generated by OpenCVE AI on October 22, 2026 at 10:31 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade webpack-dev-server to version 5.2.7 or later (for legacy branches, to 6.1.0 or newer).
  • If upgrading is not immediately possible, run the development server in production mode or configure it to hide stack traces (e.g., by disabling verbose error output).
  • Restrict network access to the development server so that only trusted internal hosts can reach it, reducing the attack surface.
  • Disable or remove the open-editor endpoint if it is not needed for development workflows.

Generated by OpenCVE AI on October 22, 2026 at 10:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 22 Oct 2026 09:45:00 +0000

Type Values Removed Values Added
Description webpack-dev-server is a development server that provides live reloading for webpack projects. In versions from 5.1.0 before 5.2.7 and in version 6.0.0, the unauthenticated open-editor endpoint validates the Host header with a regular expression meant for browser Origin schemes, so a Host value beginning with file: or with an extension scheme short-circuits the hostname and allowedHosts checks. A network peer that can reach the dev server can send a request with a malformed Host that passes validation and then causes the endpoint's URL construction to throw, and in the default non-production mode the server returns an HTTP 500 body containing the full exception stack trace, which discloses absolute filesystem paths, installed module locations, and internal source line numbers. The server keeps running, so there is no denial of service. The issue is fixed in webpack-dev-server 5.2.7 and 6.1.0, and users should upgrade to one of those versions or later.
Title webpack-dev-server vulnerable to information disclosure via Host validation bypass in the open-editor endpoint
Weaknesses CWE-1289
CWE-209
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: openjs

Published:

Updated: 2026-10-22T13:37:46.947Z

Reserved: 2026-10-21T08:13:30.143Z

Link: CVE-2026-114348

cve-icon Vulnrichment

Updated: 2026-10-22T13:32:42.611Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-10-22T10:17:08.970

Modified: 2026-10-22T15:25:10.067

Link: CVE-2026-114348

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-22T09:38:37Z

Links: CVE-2026-114348 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T10:45:04Z

Weaknesses
  • CWE-1289

    Improper Validation of Unsafe Equivalence in Input

  • CWE-209

    Generation of Error Message Containing Sensitive Information