webpack-dev-middleware Path Traversal vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 18 fixed, 13 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
Prior to versions 7.1.0, 6.1.2, and 5.3.4, the webpack-dev-middleware development middleware for devpack does not validate the supplied URL address sufficiently before returning the local file. It is possible to access any file on the developer's machine. The middleware can either work with the physical filesystem when reading the files or it can use a virtualized in-memory `memfs` filesystem. If `writeToDisk` configuration option is set to `true`, the physical filesystem is used. The `getFilenameFromUrl` method is used to parse URL and build the local file path. The public path prefix is stripped from the URL, and the `unsecaped` path suffix is appended to the `outputPath`. As the URL is not unescaped and normalized automatically before calling the midlleware, it is possible to use `%2e` and `%2f` sequences to perform path traversal attack. Developers using `webpack-dev-server` or `webpack-dev-middleware` are affected by the issue. When the project is started, an attacker might access any file on the developer's machine and exfiltrate the content. If the development server is listening on a public IP address (or `0.0.0.0`), an attacker on the local network can access the local files without any interaction from the victim (direct connection to the port). If the server allows access from third-party domains, an attacker can send a malicious link to the victim. When visited, the client side script can connect to the local server and exfiltrate the local files. Starting with fixed versions 7.1.0, 6.1.2, and 5.3.4, the URL is unescaped and normalized before any further processing.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| webpack | webpack-dev-middleware | 7.0.0 to before 7.1.0; 6.0.0 to before 6.1.2; before 5.3.4 | 7.1.0, 6.1.2, 5.3.4 | Patch available | CNA |
| — | webpack-dev-middleware (npm) | 7.0.0 to before 7.1.0 | 7.1.0 | Patch available | GHSA-wr3j-pwj9-hqq6 |
| — | webpack-dev-middleware (npm) | 6.0.0 to before 6.1.2 | 6.1.2 | Patch available | GHSA-wr3j-pwj9-hqq6 |
| — | webpack-dev-middleware (npm) | before 5.3.4 | 5.3.4 | Patch available | GHSA-wr3j-pwj9-hqq6 |
- webpack-dev-middleware Vendorwebpack Affected 7.0.0 to before 7.1.0; 6.0.0 to before 6.1.2; before 5.3.4 Fixed in 7.1.0, 6.1.2, 5.3.4 Patch available CNA
- webpack-dev-middleware (npm) Vendor— Affected 7.0.0 to before 7.1.0 Fixed in 7.1.0 Patch available GHSA-wr3j-pwj9-hqq6
- webpack-dev-middleware (npm) Vendor— Affected 6.0.0 to before 6.1.2 Fixed in 6.1.2 Patch available GHSA-wr3j-pwj9-hqq6
- webpack-dev-middleware (npm) Vendor— Affected before 5.3.4 Fixed in 5.3.4 Patch available GHSA-wr3j-pwj9-hqq6
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:webpack.js:webpack-dev-middleware:*:*:*:*:*:*:*:* | before 5.3.4; 6.0.0 to before 6.1.2; 7.0.0 to before 7.1.0 | Vulnerable | webpack |
- cpe:2.3:a:webpack.js:webpack-dev-middleware:*:*:*:*:*:*:*:* Versions before 5.3.4; 6.0.0 to before 6.1.2; 7.0.0 to before 7.1.0 Vulnerable ·webpack
Remediation
- Fix · CNA webpack-dev-middleware (webpack) Fixed in 7.1.0, 6.1.2, 5.3.4
- Fix · GHSA-wr3j-pwj9-hqq6 webpack-dev-middleware (npm) Fixed in 7.1.0 Advisory →
- Fix · GHSA-wr3j-pwj9-hqq6 webpack-dev-middleware (npm) Fixed in 6.1.2 Advisory →
- Fix · GHSA-wr3j-pwj9-hqq6 webpack-dev-middleware (npm) Fixed in 5.3.4 Advisory →
Red Hat 17 advisories
- RHSA-2026:61783 Released 2026-08-31 · Red Hat rating ImportantA Subscription Management tool for finding and reporting Red Hat product usage
- Red Hat Discovery 2 registry.redhat.io/discovery/discovery-server-rhel9, registry.redhat.io/discovery/discovery-ui-rhel9
- RHSA-2025:8551 Released 2025-06-04 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.14.18 Bug Fix Update
- RHODF 4.14 for RHEL 9 odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9, odf4/odf-multicluster-console-rhel9 +1
- RHSA-2025:8544 Released 2025-06-04 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.15.14 Bug Fix Update
- RHODF 4.15 for RHEL 9 odf4/mcg-rhel9-operator, odf4/ocs-client-console-rhel9, odf4/odf-console-rhel9 +2
Show 14 more Red Hat advisories
- RHSA-2024:7164 Released 2024-09-26 · Red Hat rating ImportantMigration Toolkit for Containers (MTC) 1.8.4 security and bug fix update
- 8Base-RHMTC-1.8 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-registry-rhel8, rhmtc/openshift-migration-ui-rhel8
- RHSA-2024:6755 Released 2024-09-18 · Red Hat rating ImportantRed Hat OpenShift Data Foundation 4.16.2 security and bug fix update
- RHODF 4.16 for RHEL 9 odf4/cephcsi-rhel9, odf4/mcg-core-rhel9, odf4/ocs-client-console-rhel9 +7
- RHSA-2024:4873 Released 2024-07-25 · Red Hat rating ImportantApicurio Registry (container images) release and security update [ 2.6.1 GA ]
- Red Hat build of Apicurio Registry 2.6.1 GA
- RHSA-2024:4520 Released 2024-07-11 · Red Hat rating ImportantMigration Toolkit for Containers (MTC) 1.7.16 security and bug fix update
- 8Base-RHMTC-1.7 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-registry-rhel8, rhmtc/openshift-migration-rsync-transfer-rhel8 +2
- RHSA-2024:4460 Released 2024-07-10 · Red Hat rating ImportantRed Hat Data Grid 8.5.0 security update
- Red Hat Data Grid
- RHSA-2024:0041 Released 2024-06-27 · Red Hat rating CriticalOpenShift Container Platform 4.16.0 bug fix and security update
- Red Hat OpenShift Container Platform 4.16 openshift4/aws-kms-encryption-provider-rhel9, openshift4/azure-kms-encryption-provider-rhel9, openshift4/cloud-network-config-controller-rhel9 +47
- RHSA-2024:3989 Released 2024-06-20 · Red Hat rating ImportantMigration Toolkit for Applications security and bug fix update
- MTA 6.2 for RHEL 8 mta/mta-ui-rhel9, mta/mta-windup-addon-rhel9
- RHSA-2024:3868 Released 2024-06-17 · Red Hat rating ImportantNetwork Observability 1.6.0 for OpenShift
- NETOBSERV 1.6 for RHEL 9 network-observability/network-observability-cli-rhel9, network-observability/network-observability-console-plugin-rhel9, network-observability/network-observability-ebpf-agent-rhel9 +3
- RHSA-2024:3920 Released 2024-06-13 · Red Hat rating ImportantMigration Toolkit for Runtimes security, bug fix and enhancement update
- Migration Toolkit for Runtimes 1 on RHEL 8
- RHSA-2024:3316 Released 2024-05-23 · Red Hat rating ImportantMigration Toolkit for Applications security and bug fix update
- MTA 7.0 for RHEL 9 mta/mta-analyzer-addon-rhel9, mta/mta-analyzer-lsp-rhel9, mta/mta-cli-rhel9 +3
- RHSA-2024:2941 Released 2024-05-21 · Red Hat rating ImportantRHACS 4.4 enhancement and security update
- RHACS 4.4 for RHEL 8 advanced-cluster-security/rhacs-central-db-rhel8, advanced-cluster-security/rhacs-collector-rhel8, advanced-cluster-security/rhacs-collector-slim-rhel8 +10
- RHSA-2024:2817 Released 2024-05-10 · Red Hat rating ImportantErrata Advisory for Red Hat OpenShift GitOps v1.10.5 security update
- Red Hat OpenShift GitOps 1.10 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 +6
- RHSA-2024:2816 Released 2024-05-10 · Red Hat rating ImportantErrata Advisory for Red Hat OpenShift GitOps v1.12.2 security update
- Red Hat OpenShift GitOps 1.12 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 +6
- RHSA-2024:2815 Released 2024-05-10 · Red Hat rating ImportantErrata Advisory for Red Hat OpenShift GitOps v1.11.4 security update
- Red Hat OpenShift GitOps 1.11 openshift-gitops-1/argo-rollouts-rhel8, openshift-gitops-1/argocd-rhel8, openshift-gitops-1/console-plugin-rhel8 +6
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Virtualization | Affected | No fix yet |
| Node HealthCheck Operator | Affected | No fix planned: Will not fix |
| OpenShift Serverless | Affected | No fix yet |
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Advanced Cluster Security 3 | Affected | No fix planned: Out of support scope |
| Red Hat Developer Hub 1 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift Dev Spaces | Affected | No fix yet |
| Red Hat Process Automation 7 | Affected | No fix planned: Will not fix |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat build of OptaPlanner 8 | Affected | No fix planned: Will not fix |
| 8Base-RHMTC-1.7 | Fixed | RHSA-2024:4520 |
| 8Base-RHMTC-1.8 | Fixed | RHSA-2024:7164 |
| MTA 6.2 for RHEL 8 | Fixed | RHSA-2024:3989 |
| MTA 7.0 for RHEL 9 | Fixed | RHSA-2024:3316 |
| Migration Toolkit for Runtimes 1 on RHEL 8 | Fixed | RHSA-2024:3920 |
| NETOBSERV 1.6 for RHEL 9 | Fixed | RHSA-2024:3868 |
| OpenShift Pipelines version 1.16 for RHEL 8 | Fixed | — |
| RHACS 4.4 for RHEL 8 | Fixed | RHSA-2024:2941 |
| RHODF 4.14 for RHEL 9 | Fixed | RHSA-2025:8551 |
| RHODF 4.15 for RHEL 9 | Fixed | RHSA-2025:8544 |
| RHODF 4.16 for RHEL 9 | Fixed | RHSA-2024:6755 |
| Red Hat Data Grid | Fixed | RHSA-2024:4460 |
| Red Hat Discovery 2 | Fixed | RHSA-2026:61783 |
| Red Hat OpenShift Container Platform 4.16 | Fixed | RHSA-2024:0041 |
| Red Hat OpenShift GitOps 1.10 | Fixed | RHSA-2024:2817 |
| Red Hat OpenShift GitOps 1.11 | Fixed | RHSA-2024:2815 |
| Red Hat OpenShift GitOps 1.12 | Fixed | RHSA-2024:2816 |
| Red Hat build of Apicurio Registry 2.6.1 GA | Fixed | RHSA-2024:4873 |
Not affected: 26 products
- 8Base-RHMTC-1.7
- 8Base-RHMTC-1.8
- Cryostat 2
- Logging Subsystem for Red Hat OpenShift
- MTA 6.2 for RHEL 8
- MTA 7.0 for RHEL 8
- MTA 7.0 for RHEL 9
- Migration Toolkit for Applications 6
- Multicluster Engine for Kubernetes
- OpenShift Service Mesh 2
- RHODF 4.14 for RHEL 9
- RHODF 4.15 for RHEL 9
- RHODF 4.16 for RHEL 9
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat Discovery 1
- Red Hat Discovery 2
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 4.16
- Red Hat OpenShift Virtualization 4
- Red Hat OpenShift distributed tracing 2
- Red Hat OpenShift distributed tracing 3
- Red Hat build of Apache Camel - HawtIO 4
Timeline
- 2026-10-02 Threatist record created from CVE-2024-29180
- 2026-10-03 Alias added: GHSA-wr3j-pwj9-hqq6
- 2026-10-08 Affected versions changed · Red Hat
- 2026-10-09 Fix available: Red Hat Data Grid · Red Hat
- 2026-10-27 Affected versions changed · Red Hat
References
Patch 5
- https://github.com/webpack/webpack-dev-middleware/commit/189c4ac7d2344ec132a4689e74dc837ec5be0132
- https://github.com/webpack/webpack-dev-middleware/commit/9670b3495da518fe667ff3428c5e4cb9f2f3d353
- https://github.com/webpack/webpack-dev-middleware/commit/e10008c762e4d5821ed6990348dabf0d4d93a10e
- https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/getFilenameFromUrl.js#L82
- https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21
Sources
- CVE-2024-29180 · CVE Program
- CVE-2024-29180 · NVD
- FIRST EPSS
- GHSA-wr3j-pwj9-hqq6 · GitHub Advisory Database · CC BY 4.0
- CVE-2024-29180 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences