Exposed dangerous method or function in webpack-dev-server - CVE-2026-6402

 

Exposed dangerous method or function in webpack-dev-server - CVE-2026-6402

Published: May 12, 2026


Vulnerability identifier: #VU131133
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-6402
CWE-ID: CWE-749
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
webpack-dev-server
Software vendor:
webpack

Description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper restriction of dangerous functionality in dev server JavaScript bundle access controls when handling cross-origin requests from malicious websites over a non-HTTPS origin. A remote attacker can load the dev server's JavaScript bundles and intercept the webpack runtime's module registration to disclose sensitive information.

User interaction is required to visit a malicious website, and exploitation requires knowledge of the dev server host, port, and output path.


Remediation

Install security update from vendor's website.

External links