CVE-2026-6402

Source
https://cve.org/CVERecord?id=CVE-2026-6402
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6402.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-6402
Aliases
Downstream
Related
Published
2026-05-12T07:45:21.253Z
Modified
2026-07-08T22:29:20.256305385Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6402.json",
    "cna_assigner": "openjs",
    "cwe_ids": [
        "CWE-749"
    ]
}
References

Affected packages

Git / github.com/webpack/webpack-dev-server

Affected ranges

Type
GIT
Repo
https://github.com/webpack/webpack-dev-server
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:webpack.js:webpack-dev-server:*:*:*:*:*:*:*:*",
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.2.4"
        }
    ]
}

Affected versions

v1.*
v1.10.0
v1.10.1
v1.11.0
v1.12.0
v1.12.1
v1.13.0
v1.14.0
v1.14.1
v1.7.0
v1.8.0
v1.8.1
v1.8.2
v1.9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age.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-6402.json"