Vulnerability
CVE-2026-6402
webpack-dev-server versions up to and including 5.2.3 are vulnerable to cross-origin source code exposure when serving over a non-potentially trustworthy origin such as plain HTTP. The previous fix relied on the Sec-Fetch-Mode and Sec-Fetch-Site request headers, which browsers omit for non-trustworthy origins, allowing a malicious site to load the bundled source as a script and read it across origins. Impact: an attacker controlling a website visited by a developer running webpack-dev-server can recover the application source code when the dev server runs over HTTP at a guessable host and port. Chromium based browsers from Chrome 142 onward are not affected due to local network access restrictions. Upgrade to webpack-dev-server 5.2.4 or later, which sets Cross-Origin-Resource-Policy: same-origin on responses.
80 advisories report this vulnerability, across 6 ecosystems.
Advisories in Wolfi
- CGA-2ff5-wm9r-2725
- CGA-2mmm-rr28-8pxj
- CGA-66p6-mgp3-pp3r
- CGA-6rqr-3w47-m4wp
- CGA-7qq5-xrp6-7xwj
- CGA-835h-482c-h782
- CGA-8q9g-w8m8-8r3v
- CGA-9hmv-hvhg-83w9
- CGA-9xc2-cccp-pf4c
- CGA-cpw7-h49x-c3rf
- CGA-m9xx-6384-f58q
- CGA-p2gw-gcxr-h65c
- CGA-p6jc-3h52-c8j5
- CGA-q9xp-9f2w-hwm2
- CGA-qfhr-xq74-22p8
- CGA-qwv4-527m-gg9c
- CGA-qxp2-ghgv-94xx
- CGA-rpqf-wmmg-r9pg
- CGA-wwph-cj75-pw9p
- CGA-x246-hxwq-92f2