CVE-2026-6402
published medium CVSS 3.1 · 5.3webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| webpack-dev-server | — | webpack-dev-server0 to < 5.2.4 (affected · semver) · 5.2.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uiaarch64 | Advisory build | 21+360.16caae772-44.1 | OPENSUSE-SU-2026:10979-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uippc64le | Advisory build | 21+360.16caae772-44.1 | OPENSUSE-SU-2026:10979-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uis390x | Advisory build | 21+360.16caae772-44.1 | OPENSUSE-SU-2026:10979-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uix86_64 | Advisory build | 21+360.16caae772-44.1 | OPENSUSE-SU-2026:10979-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| webpack-dev-server | webpack-dev-server | 0 to < 5.2.4 (affected · semver)5.2.4 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-749 CWE-749: Exposed Dangerous Method or Function
References
2Provider assertions
2openjs · cna
webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ec5da4d7a3a4d4f0a56b1f8b10386de2ed431689812237038c70e111939ec9a2
- Ingested
- 23 Sep 2026, 09:28:24 UTC
- Source record
- Official CVE record