CVE-2026-6402 webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm webpack-dev-server | < 5.2.4 | 5.2.4 |
| npm webpack-dev-server(npm) | <= 5.2.3 | No fix listed |
| redhat/cryostat-openshift-console-plugin-npm(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat:gatekeeper:3) | All versions | No fix listed |
| redhat/rhmtc/openshift-migration-ui-rhel8(Red Hat:rhmt:1) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-must-gather-rhel9(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-operator-bundle(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/workload-availability/node-healthcheck-rhel9-operator(Red Hat:workload_availability_nhc:0) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-419-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-pf5-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-lightspeed/lightspeed-console-plugin-rhel9(Red Hat:openshift_lightspeed:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-console-plugin-rhel8(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-console-plugin-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel8(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-pipelines/pipelines-hub-ui-rhel9(Red Hat:openshift_pipelines:1) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-ossmc-rhel8(Red Hat:service_mesh:2) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel8(Red Hat:service_mesh:2) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-operator-bundle(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-ossmc-rhel9(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel9(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/openshift-service-mesh/kiali-rhel9-operator(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
Show 31 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-eda-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:camel_spring_boot:4) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:apache_camel_hawtio:4) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:service_registry:2) | All versions | No fix listed |
| redhat/rh-podman-desktop.git(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:jboss_data_grid:8) | All versions | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/discovery/discovery-ui-rhel9(Red Hat:discovery:2::el8) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/js-d3-flame-graph(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/grafana(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/js-d3-flame-graph(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/pcs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/rhoai/odh-mlflow-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift4/ose-console-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/container-native-virtualization/kubevirt-console-plugin(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
| redhat/container-native-virtualization/kubevirt-console-plugin-rhel9(Red Hat:container_native_virtualization:4) | All versions | No fix listed |
| redhat/webpack-dev-server(Red Hat:jboss_bpms:7) | All versions | No fix listed |
| redhat/quay/quay-rhel8(Red Hat:quay:3) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-portal(Red Hat:ansible_portal:2) | All versions | No fix listed |
| webpack.js webpack-dev-server | < 5.2.4 | 5.2.4 |
| azure linux python-tensorboard(Azure Linux:3.0) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- github.com mitigation vendor-advisory
- cna.openjsf.org vendor-advisory
- github.com vendor-advisory
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory
- github.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2476411 issue-tracking
- www.cve.org