Exposed dangerous method or function in webpack-dev-server - CVE-2026-6402
Published: May 12, 2026
webpack-dev-server
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.