CVE-2026-6402
CVE-2026-6402 is a medium-severity vulnerability in Webpack.js Webpack-dev-server with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-749.
Key facts
- Severity: Medium (CVSS 3.x base score 5.3)
- EPSS exploit prediction: 0% (12th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-29404
- Weakness: CWE-749
- Affected product: Webpack.js Webpack-dev-server
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2026-6402?
- CVE-2026-6402 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2026-6402 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (12th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-6402?
- CVE-2026-6402 affects Webpack.js Webpack-dev-server. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-6402?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2026-6402 have an EU (EUVD) identifier?
- Yes. CVE-2026-6402 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-29404.
- When was CVE-2026-6402 published?
- CVE-2026-6402 was published on 2026-05-12 and last updated on 2026-06-17.
References
- https://cna.openjsf.org/security-advisories.html
- https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-79cf-xcqc-c78w
Affected products (1)
- cpe:2.3:a:webpack.js:webpack-dev-server:*:*:*:*:*:*:*:*
More vulnerabilities in Webpack.js Webpack-dev-server
- CVE-2018-14732 — High (CVSS 7.5): An issue was discovered in lib/Server.js in webpack-dev-server before 3.1.6. Attackers are able to steal developer's…
- CVE-2025-30360 — Medium (CVSS 6.5): webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version…
- CVE-2026-14631 — Medium (CVSS 5.3): webpack-dev-server versions 5.2.5 and earlier terminate the whole Node.js process when an unauthenticated peer sends…
- CVE-2026-9595 — Medium (CVSS 5.3): Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g. /) and ws: true, it also…
- CVE-2025-30359 — Medium (CVSS 5.3): webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version…
- CVE-2026-14620 — Medium (CVSS 4.7): webpack-dev-server versions 5.2.5 and earlier expose two internal developer endpoints, /webpack-dev-server/open-editor…
All CVEs affecting Webpack.js Webpack-dev-server →
Other CWE-749 vulnerabilities
- CVE-2023-40151 — Critical (CVSS 10.0): When user authentication is not enabled the shell can execute commands with the highest privileges. Red Lion SixTRAK…
- CVE-2026-55454 — Critical (CVSS 9.9): Appsmith is a platform to build admin panels, internal tools, and dashboards. Prior to 2.1, the bundled Caddy…
- CVE-2026-30957 — Critical (CVSS 9.9): OneUptime is a solution for monitoring and managing online services. Prior to 10.0.21, OneUptime Synthetic Monitors…
- CVE-2026-30921 — Critical (CVSS 9.9): OneUptime is a solution for monitoring and managing online services. Prior to 10.0.20, OneUptime Synthetic Monitors…
- CVE-2019-18342 — Critical (CVSS 9.9): A vulnerability has been identified in Control Center Server (CCS) (All versions < V1.5.0). The SFTP service (default…
- CVE-2025-59403 — Critical (CVSS 9.8): The Flock Safety Android Collins application (aka com.flocksafety.android.collins) 6.35.31 for Android lacks…