Home / webpack / webpack-dev-middleware / CVE-2024-29180
CVE-2024-29180: is it exploited, and which versions of webpack-dev-middleware are affected and fixed?
CVE-2024-29180 is a path traversal (reading or writing files outside the intended folder) vulnerability in webpack-dev-middleware. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: webpack-dev-middleware from 7.0.0 before 7.1.0, webpack-dev-middleware from 6.0.0 before 6.1.2 and webpack-dev-middleware before 5.3.4 (GitHub advisory GHSA-wr3j-pwj9-hqq6). Fixed in 7.1.0, 6.1.2 and 5.3.4 (GitHub advisory GHSA-wr3j-pwj9-hqq6). Severity: High (7.4, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:31 UTC.
What is CVE-2024-29180?
webpack-dev-middleware Path Traversal vulnerability
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.
From the CVE record by GitHub_M, last updated August 2, 2024, 14:58 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| webpack | webpack-dev-middleware | >= 7.0.0, < 7.1.0 >= 6.0.0, < 6.1.2 < 5.3.4 |
As the CVE record by GitHub_M states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | webpack-dev-middleware | >= 7.0.0, < 7.1.0 | 7.1.0 | GHSA-wr3j-pwj9-hqq6 |
| npm | webpack-dev-middleware | >= 6.0.0, < 6.1.2 | 6.1.2 | GHSA-wr3j-pwj9-hqq6 |
| npm | webpack-dev-middleware | < 5.3.4 | 5.3.4 | GHSA-wr3j-pwj9-hqq6 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 21, 2024. Summary: Path traversal in webpack-dev-middleware.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| webpack.js | webpack-dev-middleware | before 5.3.4 | application |
| webpack.js | webpack-dev-middleware | from 6.0.0 before 6.1.2 | application |
| webpack.js | webpack-dev-middleware | from 7.0.0 before 7.1.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:22 UTC.
How severe is CVE-2024-29180?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.4 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-29180 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, August 2, 2024)
- EPSS
- 1.23% probability of exploitation activity in the next 30 days, percentile 69.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Where are the vendor advisories and references?
- https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6 x_refsource_CONFIRM
- https://github.com/webpack/webpack-dev-middleware/commit/189c4ac7d2344ec132a4689e74dc837ec5be0132 x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/commit/9670b3495da518fe667ff3428c5e4cb9f2f3d353 x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/commit/e10008c762e4d5821ed6990348dabf0d4d93a10e x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/getFilenameFromUrl.js#L82 x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21 x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v5.3.4 x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v6.1.2 x_refsource_MISC
- https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.1.0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 18, 2024
- Published
- March 21, 2024, 16:47 UTC
- CVE record updated
- August 2, 2024, 14:58 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:22 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:31 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect webpack-dev-middleware?
- Aug 24, 2026CVE-2026-76844 webpack-dev-middleware: path traversal (reading or writing files outside the intended folder)
Every CVE in webpack-dev-middleware
Questions about CVE-2024-29180
Is CVE-2024-29180 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 1.23% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of webpack-dev-middleware are affected by CVE-2024-29180?
webpack-dev-middleware from 7.0.0 before 7.1.0, webpack-dev-middleware from 6.0.0 before 6.1.2 and webpack-dev-middleware before 5.3.4, per the GitHub advisory GHSA-wr3j-pwj9-hqq6. The tables above give every range the sources list.
Which version fixes CVE-2024-29180?
7.1.0, 6.1.2 and 5.3.4, per the GitHub advisory GHSA-wr3j-pwj9-hqq6. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-29180?
High (7.4, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-29180?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.