{"id":"CVE-2024-29180","aliases":["CLSA-2026-1774311626","CLSA-2026-1774311628","CLSA-2026-1774311629","CLSA-2026-1774311637","CLSA-2026-1776299675","CLSA-2026-1776299676","CLSA-2026-1779238049","CLSA-2026-1779238056","CLSA-2026-1784596341","CLSA-2026-1784856457","CLSA-2026-1789721764","CLSA-2026-1790520250","CLSA-2026-1790866070","CLSA-2026-1790866099","EUVD-2024-1028","GHSA-wr3j-pwj9-hqq6","ROOT-APP-NPM-CVE-2024-29180"],"status":"published","title":"webpack-dev-middleware Path Traversal vulnerability","description":"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.\n\nDevelopers 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.","severity":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01226,"percentile":0.69209,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2024-03-21T16:47:53Z","modified":"2026-10-28T02:30:50Z","fixes":[{"ecosystem":"npm","package":"webpack-dev-middleware","fixed_in":["7.1.0","6.1.2","5.3.4"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","fixed_in":["3.7.2-tuxcare.1","5.0.0-tuxcare.1","5.3.0-tuxcare.1","1.12.2-tuxcare.1","3.5.1-tuxcare.1","3.4.0-tuxcare.1","3.7.3-tuxcare.1","5.3.3-tuxcare.1","1.12.0-tuxcare.1","1.10.2-tuxcare.1","1.11.0-tuxcare.1","3.0.1-tuxcare.1","6.1.3-tuxcare.1","5.3.4-tuxcare.2"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"webpack-dev-middleware","fixed_in":["3.7.2-aikido.1","4.3.0-aikido.2","3.7.3-aikido.2","4.3.0-aikido.3","3.7.2-aikido.2","3.7.3-aikido.3"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/webpack-dev-middleware","fixed_in":["3.7.2-root.io.1","4.3.0-root.io.1","3.7.3-root.io.1","4.3.0-root.io.2","3.7.3-root.io.2","4.3.0-root.io.3","3.7.2-root.io.2","3.7.3-root.io.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.1.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.1.2"}]}]},{"source":"ghsa","ecosystem":"npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"5.3.3"},{"fixed":"5.3.4"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.7.2-tuxcare.0"},{"fixed":"3.7.2-tuxcare.1"}]}],"versions":["3.7.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0-tuxcare.0"},{"fixed":"5.0.0-tuxcare.1"}]}],"versions":["5.0.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.0-tuxcare.0"},{"fixed":"5.3.0-tuxcare.1"}]}],"versions":["5.3.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.2-tuxcare.0"},{"fixed":"1.12.2-tuxcare.1"}]}],"versions":["1.12.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.1-tuxcare.0"},{"fixed":"3.5.1-tuxcare.1"}]}],"versions":["3.5.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0-tuxcare.0"},{"fixed":"3.4.0-tuxcare.1"}]}],"versions":["3.4.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.7.3-tuxcare.0"},{"fixed":"3.7.3-tuxcare.1"}]}],"versions":["3.7.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.3-tuxcare.0"},{"fixed":"5.3.3-tuxcare.1"}]}],"versions":["5.3.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0-tuxcare.0"},{"fixed":"1.12.0-tuxcare.1"}]}],"versions":["1.12.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.10.2-tuxcare.0"},{"fixed":"1.10.2-tuxcare.1"}]}],"versions":["1.10.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.11.0-tuxcare.0"},{"fixed":"1.11.0-tuxcare.1"}]}],"versions":["1.11.0"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.1-tuxcare.0"},{"fixed":"3.0.1-tuxcare.1"}]}],"versions":["3.0.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.3-tuxcare.0"},{"fixed":"6.1.3-tuxcare.1"}]}],"versions":["6.1.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.3.4-tuxcare.0"},{"fixed":"5.3.4-tuxcare.2"}]}],"versions":["5.3.4","5.3.4-tuxcare.1"]},{"source":"osv","ecosystem":"npm","package":"webpack-dev-middleware","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"webpack-dev-middleware","ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"6.1.2"}]}]},{"source":"osv","ecosystem":"npm","package":"webpack-dev-middleware","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.3.4"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.2-aikido.1"},{"fixed":"4.3.0-aikido.2"},{"fixed":"3.7.3-aikido.2"},{"fixed":"4.3.0-aikido.3"},{"fixed":"3.7.2-aikido.2"},{"fixed":"3.7.3-aikido.3"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/webpack-dev-middleware","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.7.2-root.io.1"},{"fixed":"4.3.0-root.io.1"},{"fixed":"3.7.3-root.io.1"},{"fixed":"4.3.0-root.io.2"},{"fixed":"3.7.3-root.io.2"},{"fixed":"4.3.0-root.io.3"},{"fixed":"3.7.2-root.io.2"},{"fixed":"3.7.3-root.io.3"}]}]}],"products":[{"vendor":"webpack","product":"webpack-dev-middleware"},{"vendor":"webpack.js","product":"webpack-dev-middleware"}],"references":[{"url":"https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/commit/189c4ac7d2344ec132a4689e74dc837ec5be0132","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/commit/9670b3495da518fe667ff3428c5e4cb9f2f3d353","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/commit/e10008c762e4d5821ed6990348dabf0d4d93a10e","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/getFilenameFromUrl.js#L82","tags":["x_refsource_MISC","x_transferred","Patch","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21","tags":["x_refsource_MISC","x_transferred","Patch","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/releases/tag/v5.3.4","tags":["x_refsource_MISC","x_transferred","Product","Release Notes","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/releases/tag/v6.1.2","tags":["x_refsource_MISC","x_transferred","Product","Release Notes","web"]},{"url":"https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.1.0","tags":["x_refsource_MISC","x_transferred","Product","Release Notes","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29180","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wr3j-pwj9-hqq6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29180.json","tags":["advisory"]},{"url":"https://github.com/webpack/webpack-dev-middleware","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-29180","title":"webpack-dev-middleware Path Traversal vulnerability","description":"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.\n\nDevelopers 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.","status":"published","published":"2024-03-21T16:47:53.848Z","modified":"2024-08-02T14:58:57.526Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:34:15.337999Z"}],"euvd":[{"id":"EUVD-2024-1028","description":"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.\n\nDevelopers 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.","status":"published","published":"2024-03-21T16:47:53Z","modified":"2024-08-02T14:58:57Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-03T03:50:05.51254Z"}],"ghsa":[{"id":"GHSA-wr3j-pwj9-hqq6","title":"Path traversal in webpack-dev-middleware","description":"### Summary\n_The **webpack-dev-middleware** middleware 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._\n\n### Details\nThe middleware can either work with the physical filesystem when reading the files or it can use a virtualized in-memory _memfs_ filesystem.\nIf _writeToDisk_ configuration option is set to **true**, the physical filesystem is used:\n[https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21](https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21)\n\nThe _**getFilenameFromUrl**_ method is used to parse URL and build the local file path.\nThe public path prefix is stripped from the URL, and the **unsecaped** path suffix is appended to the _outputPath_:\n[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/getFilenameFromUrl.js#L82)\nAs 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.\n\n### PoC\n_A blank project can be created containing the following configuration file **webpack.config.js**:_\n`module.exports = {\n  devServer: {\n    devMiddleware: {\n      writeToDisk: true\n    }\n  }\n};\n`\n\nWhen started, it is possible to access any local file, e.g. _/etc/passwd_:\n`$ curl localhost:8080/public/..%2f..%2f..%2f..%2f../etc/passwd`\n```\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nbin:x:2:2:bin:/bin:/usr/sbin/nologin\nsys:x:3:3:sys:/dev:/usr/sbin/nologin\nsync:x:4:65534:sync:/bin:/bin/sync\ngames:x:5:60:games:/usr/games:/usr/sbin/nologin\n```\n\n### Impact\nThe 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 (e.g. password, configuration files, private source code, ...).\n\nIf 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).\n\nIf the server allows access from third-party domains (CORS, **_Allow-Access-Origin: *_** ), 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.\n\n### Recommendation\nThe URL should be unescaped and normalized before any further processing.","status":"published","published":"2024-03-21T18:59:28Z","modified":"2024-03-21T18:59:29Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:41.821668Z"}],"nvd":[{"id":"CVE-2024-29180","description":"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.\n\nDevelopers 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.","status":"published","published":"2024-03-21T17:15:09.69Z","modified":"2026-06-17T07:22:34.437Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:09:43.052376Z"}],"osv":[{"id":"CVE-2024-29180","title":"webpack-dev-middleware Path Traversal vulnerability","description":"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.\n\nDevelopers 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.","status":"published","published":"2024-03-21T16:47:53.848Z","modified":"2026-10-28T02:30:50.105567725Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:44:40.06138Z"},{"id":"GHSA-wr3j-pwj9-hqq6","title":"Path traversal in webpack-dev-middleware","description":"### Summary\n_The **webpack-dev-middleware** middleware 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._\n\n### Details\nThe middleware can either work with the physical filesystem when reading the files or it can use a virtualized in-memory _memfs_ filesystem.\nIf _writeToDisk_ configuration option is set to **true**, the physical filesystem is used:\n[https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21](https://github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js#L21)\n\nThe _**getFilenameFromUrl**_ method is used to parse URL and build the local file path.\nThe public path prefix is stripped from the URL, and the **unsecaped** path suffix is appended to the _outputPath_:\n[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/getFilenameFromUrl.js#L82)\nAs 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.\n\n### PoC\n_A blank project can be created containing the following configuration file **webpack.config.js**:_\n`module.exports = {\n  devServer: {\n    devMiddleware: {\n      writeToDisk: true\n    }\n  }\n};\n`\n\nWhen started, it is possible to access any local file, e.g. _/etc/passwd_:\n`$ curl localhost:8080/public/..%2f..%2f..%2f..%2f../etc/passwd`\n```\nroot:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nbin:x:2:2:bin:/bin:/usr/sbin/nologin\nsys:x:3:3:sys:/dev:/usr/sbin/nologin\nsync:x:4:65534:sync:/bin:/bin/sync\ngames:x:5:60:games:/usr/games:/usr/sbin/nologin\n```\n\n### Impact\nThe 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 (e.g. password, configuration files, private source code, ...).\n\nIf 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).\n\nIf the server allows access from third-party domains (CORS, **_Allow-Access-Origin: *_** ), 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.\n\n### Recommendation\nThe URL should be unescaped and normalized before any further processing.","status":"published","published":"2024-03-21T18:59:28Z","modified":"2026-10-03T03:55:42.589819697Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:59.131095Z"},{"id":"CLSA-2026-1774311626","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 3.7.2-tuxcare.1.","status":"published","published":"2026-08-04T14:52:14Z","modified":"2026-10-15T09:46:15.882425352Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774311628","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 5.0.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:14Z","modified":"2026-10-15T09:47:05.334400813Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774311629","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 5.3.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:14Z","modified":"2026-10-15T09:47:03.623435289Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1774311637","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 1.12.2-tuxcare.1.","status":"published","published":"2026-08-04T14:52:14Z","modified":"2026-10-15T09:47:03.626730922Z","updated_at":"2026-11-02T15:43:43.621843Z"},{"id":"CLSA-2026-1776299675","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 3.5.1-tuxcare.1.","status":"published","published":"2026-08-04T14:52:26Z","modified":"2026-10-15T09:47:49.839854855Z","updated_at":"2026-11-02T15:43:44.009773Z"},{"id":"CLSA-2026-1776299676","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 3.4.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:26Z","modified":"2026-10-15T09:47:02.818235129Z","updated_at":"2026-11-02T15:43:44.009773Z"},{"id":"CLSA-2026-1779238049","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 3.7.3-tuxcare.1.","status":"published","published":"2026-08-04T14:52:32Z","modified":"2026-10-15T09:48:03.585747304Z","updated_at":"2026-11-02T15:43:45.090939Z"},{"id":"CLSA-2026-1779238056","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 5.3.3-tuxcare.1.","status":"published","published":"2026-08-04T14:52:33Z","modified":"2026-10-15T09:48:03.669408097Z","updated_at":"2026-11-02T15:43:45.090939Z"},{"id":"CLSA-2026-1784596341","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 1.12.0-tuxcare.1.","status":"published","published":"2026-08-04T14:52:45Z","modified":"2026-10-15T09:47:36.214976193Z","updated_at":"2026-11-02T15:43:46.482572Z"},{"id":"CLSA-2026-1784856457","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 1.10.2-tuxcare.1.","status":"published","published":"2026-08-04T14:52:48Z","modified":"2026-10-15T09:47:35.760457687Z","updated_at":"2026-11-02T15:43:46.482572Z"},{"id":"CLSA-2026-1789721764","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 1.11.0-tuxcare.1.","status":"published","published":"2026-09-18T08:56:04Z","modified":"2026-10-15T09:47:56.297025047Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1790520250","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 3.0.1-tuxcare.1.","status":"published","published":"2026-09-27T14:44:10Z","modified":"2026-10-15T09:47:38.187028425Z","updated_at":"2026-11-02T15:43:48.65893Z"},{"id":"CLSA-2026-1790866070","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 6.1.3-tuxcare.1.","status":"published","published":"2026-10-01T14:47:50Z","modified":"2026-10-15T09:48:04.276095937Z","updated_at":"2026-11-02T15:43:48.65893Z"},{"id":"CLSA-2026-1790866099","title":"TuxCare security update for webpack-dev-middleware (1 CVE)","description":"TuxCare rebuilt webpack-dev-middleware to address 1 CVE. Fixed in 5.3.4-tuxcare.2.","status":"published","published":"2026-10-01T14:48:19Z","modified":"2026-10-15T09:48:04.256076684Z","updated_at":"2026-11-02T15:43:48.65893Z"},{"id":"ROOT-APP-NPM-CVE-2024-29180","title":"CVE-2024-29180 in webpack-dev-middleware - Patched by Root","description":"Root has patched CVE-2024-29180 in the webpack-dev-middleware package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-10-05T11:52:18Z","modified":"2026-10-05T12:15:04.060985028Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
