# CVE-2024-29180: webpack-dev-middleware Path Traversal vulnerability

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 5.3.4, 6.1.2, 7.1.0 (CNA); fix release not confirmed
- Status: published
- Published: 2024-03-21 · Modified: 2024-08-02
- Aliases: CGA-43qr-g3p6-vjf3, CGA-472w-m6qw-jxjg, CGA-4cv9-h2x5-6fhm, CGA-4pm9-p23g-gc64, CGA-4rx3-q2fq-8pxr, CGA-82q5-8rwm-mp42, CGA-8pfj-wx8j-m74c, CGA-8wx3-h7j9-78xv, CGA-9qvv-r9hx-rvxp, CGA-ch7j-mphj-f392, CGA-cjcf-j98c-8grr, CGA-cv2j-6fpc-4vf4, CGA-fw5h-8pjg-gggf, CGA-gp4p-w66h-cpwg, CGA-h29m-4cgh-6jqp, CGA-qxh7-2r6r-q68w, CGA-rfr4-7m99-286h, CGA-v5x2-235g-9296, CGA-vvc6-52fp-7v65, CGA-w3mg-wr63-v222, CGA-wq27-gq8m-gcv5, CGA-wx26-x2fj-7x5j, GHSA-wr3j-pwj9-hqq6, CGA-q572-8mfx-q5c4, CGA-wjcq-qc8m-h59f
- Record: https://cvemate.com/vulnerability/CVE-2024-29180 · JSON: https://cvemate.com/vulnerability/CVE-2024-29180/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.226%, percentile 69.823%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 26)

- chainguard arangodb-3.11 (Chainguard): \< 3.11.14.5-r16
- chainguard argo-workflows (Chainguard): \< 3.6.5-r2
- chainguard katib-earlystopping (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-goptuna-compat (Chainguard): All versions (No fix recorded) \| \< 0.19.0-r40
- chainguard katib-suggestion-hyperband (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-hyperopt (Chainguard): \< 0.19.0-r31 \| \< 0.19.0-r40
- chainguard katib-suggestion-nas-darts (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-nas-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-optuna-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-pbt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-suggestion-skopt-enas (Chainguard): \< 0.19.0-r31
- chainguard katib-tfevent-metricscollector (Chainguard): \< 0.19.0-r31
- wolfi argo-workflows (Wolfi): \< 3.6.5-r2
- wolfi katib-earlystopping (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-goptuna-compat (Wolfi): All versions (No fix recorded) \| \< 0.19.0-r40
- wolfi katib-suggestion-hyperband (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-hyperopt (Wolfi): \< 0.19.0-r31 \| \< 0.19.0-r40
- wolfi katib-suggestion-nas-darts (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-nas-enas (Wolfi): \< 0.19.0-r31
- wolfi katib-suggestion-optuna-enas (Wolfi): \< 0.19.0-r31

## References

- <https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6>
- <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>
- <https://github.com/webpack/webpack-dev-middleware/releases/tag/v5.3.4>
- <https://github.com/webpack/webpack-dev-middleware/releases/tag/v6.1.2>
- <https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.1.0>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29180.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-29180>
- <https://github.com/webpack/webpack-dev-middleware>

---

Data as of 2026-12-05T08:28:55.397Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
