CVE-2026-6402
webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins
No exploitation reported by the sources we read.
- Published2026-05-12
- Fixed in5.2.4
- WeaknessCWE-749
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2026-05-1209:16CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.2 | < 5.2.4 | 5.2.4 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As openjs, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- webpack-dev-serverother versions: not affectedAffected
- < 5.2.4fixed in 5.2.4semver
Not affected = 5.2.4
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-05-12
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 5.2.3-root.io.1
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 3.11.3-root.io.1
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 3.11.3-root.io.2
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 3.11.3-root.io.3
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 3.11.3-root.io.4
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 4.10.0-root.io.1
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 4.10.0-root.io.2
- @rootio/webpack-dev-serverRoot:npmall versions · fixed in 4.10.0-root.io.3
61 more package ranges on OSV.dev
Vendor advisories
webpack-dev-server: webpack-dev-server: Information disclosure due to cross-origin source code exposure
cryostat-openshift-console-plugin-npm as a component of Cryostat 4 · webpack-dev-server as a component of Cryostat 4 · gatekeeper/gatekeeper-rhel9 as a component of Gatekeeper 3 · +74 more
Fix
- Update Webpack.js webpack-dev-server to 5.2.4
- No fix available, says the vendor Red Hat Product Security CVE-2026-6402 · 74 productsFix deferred
- No fix planned, says the vendor Red Hat Product Security CVE-2026-6402 · 3 productsOut of support scope
Advisories and patches
- cna.openjsf.orgVendor Advisory
- github.comMitigation · Vendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionnone2026-05-12
- CNACVSS 3.15.3known since 2026-10-23
- NVDCVSS 3.16.5read 2026-10-23
- CNAweakness (CWE)CWE-749known since 2026-10-23
- FIRST EPSSEPSS score0.3 %2026-11-08
- OSVaffected packages—
- GitHub AdvisoriesadvisoryMODERATE2026-05-18
- Microsoft MSRCadvisory—
Identifiers
- CGA-2522-9pc8-5wc3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2945-pqjf-xq37same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2ff5-wm9r-2725same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2m83-gvp4-hvwxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2mmm-rr28-8pxjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-33f7-69gq-m69csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-37c5-j86w-cvwmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-37cj-rx2j-82w7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-38jm-gwx2-r286same flawChainguard · CC-BY-NC-ND-4.0
- CGA-38pj-v5f4-hm78same flawChainguard · CC-BY-NC-ND-4.0
- CGA-39xv-qq37-wvp7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3fjm-rxw6-5hh8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3m8c-2jrq-cqjjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3m9m-v6cc-p783same flawChainguard · CC-BY-NC-ND-4.0
- CGA-3pph-ghgq-5h9vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3qvr-qmrp-399xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-3xr6-g5c4-xvxpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-5x8j-qxg8-qm23same flawChainguard · CC-BY-NC-ND-4.0
- CGA-66p6-mgp3-pp3rsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6rqr-3w47-m4wpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-6xrm-m72w-x827same flawChainguard · CC-BY-NC-ND-4.0
- CGA-72hj-c7gx-36pgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7qq5-xrp6-7xwjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-7w9w-93x6-p434same flawChainguard · CC-BY-NC-ND-4.0
- CGA-835h-482c-h782same flawChainguard · CC-BY-NC-ND-4.0
- CGA-848w-pq8x-234hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-876r-gcr5-ffw8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-8fvr-9rw6-w8qrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-8q9g-w8m8-8r3vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9hmv-hvhg-83w9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9m7m-w4ww-6vfpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-9x7h-phjp-4f38same flawChainguard · CC-BY-NC-ND-4.0
- CGA-9xc2-cccp-pf4csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c589-9p83-5mfrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-c836-m2hc-jcjvsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cc67-hcvg-8w7vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-cpw7-h49x-c3rfsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f43x-hcv2-gc8csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f455-p6h9-x75vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-f837-5w47-3f94same flawChainguard · CC-BY-NC-ND-4.0
- CGA-fx2x-wwmw-cq42same flawChainguard · CC-BY-NC-ND-4.0
- CGA-g8vm-wfp9-rm9hsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-gm57-xhqf-7q55same flawChainguard · CC-BY-NC-ND-4.0
- CGA-gqgg-2qwx-c3v5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-hq78-8mp6-2wh7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-j4pp-vw52-xwh4same flawChainguard · CC-BY-NC-ND-4.0
- CGA-j9wh-vghf-g2r9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-jgpg-jfrf-grfpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-jm2p-843r-rmv8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-m9xx-6384-f58qsame flawChainguard · CC-BY-NC-ND-4.0
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- Published
- 2026-05-12
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- MSRC Title
- webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins
- GitHub Advisory
- GHSA-79cf-xcqc-c78w
Frequently asked questions
What is CVE-2026-6402?
Is CVE-2026-6402 actively exploited?
What is the CVSS score for CVE-2026-6402?
Running webpack-dev-server? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-79cf-xcqc-c78w
- Microsoft MSRC · Microsoft terms of use (personal and non-commercial use) · terms restrict redistribution
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0