{"id":"GHSA-wr3j-pwj9-hqq6","revision":null,"records":[{"revision":"bc30a6cb914740229bb498aa5c5864d5","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-29180","aliases":[],"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.","state":0,"publishedAt":"2024-03-21T16:47:53.848+00:00","modifiedAt":"2024-08-02T14:58:57.526+00:00","affected":[{"ecosystem":"Vendor product","name":"webpack-dev-middleware","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"webpack\",\n                    \"product\": \"webpack-dev-middleware\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= 7.0.0, < 7.1.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 6.0.0, < 6.1.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"< 5.3.4\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"severity":"HIGH"}],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-29180","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-29180","identifiers":["CVE-2024-29180"]},"retained":false,"historicalAffected":[]},{"revision":"c560a33049464ed08527e3b994e14301","observedAt":"2026-11-11T00:36:33.832+00:00","statement":{"source":"euvd","id":"EUVD-2024-1028","aliases":["CVE-2024-29180","GHSA-wr3j-pwj9-hqq6"],"title":"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 devel…","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"severity":null}],"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"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1028","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Mar 21, 2024, 4:47:53 PM","dateUpdated":"Aug 2, 2024, 2:58:57 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2024-1474","title":"Red Hat OpenShift Container Platform: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2019-25210","CVE-2023-29483","CVE-2023-45142","CVE-2023-45289","CVE-2023-45290","CVE-2023-47108","CVE-2023-48795","CVE-2023-52425","CVE-2024-0874","CVE-2024-1394","CVE-2024-22189","CVE-2024-2398","CVE-2024-24783","CVE-2024-24784","CVE-2024-24785","CVE-2024-24786","CVE-2024-28110","CVE-2024-28176","CVE-2024-28180","CVE-2024-28757","CVE-2024-28849","CVE-2024-29180","CVE-2024-3177","CVE-2024-3727"]},{"id":"RHSA-2024:2816","title":"Red Hat Security Advisory: Errata Advisory for Red Hat OpenShift GitOps v1.12.2 security update","vulnerabilityIds":["CVE-2024-29180","CVE-2024-31990"]},{"id":"RHSA-2024:3920","title":"Red Hat Security Advisory: Migration Toolkit for Runtimes security, bug fix and enhancement update","vulnerabilityIds":["CVE-2023-45857","CVE-2024-28849","CVE-2024-29131","CVE-2024-29133","CVE-2024-29180"]},{"id":"RHSA-2024:2815","title":"Red Hat Security Advisory: Errata Advisory for Red Hat OpenShift GitOps v1.11.4 security update","vulnerabilityIds":["CVE-2024-29180"]},{"id":"RHSA-2024:4460","title":"Red Hat Security Advisory: Red Hat Data Grid 8.5.0 security update","vulnerabilityIds":["CVE-2024-29025","CVE-2024-29180"]},{"id":"RHSA-2024:3868","title":"Red Hat Security Advisory: Network Observability 1.6.0 for OpenShift","vulnerabilityIds":["CVE-2023-39326","CVE-2023-42282","CVE-2023-45289","CVE-2023-45290","CVE-2024-24783","CVE-2024-24785","CVE-2024-24786","CVE-2024-28849","CVE-2024-29041","CVE-2024-29180"]},{"id":"RHSA-2024:3989","title":"Red Hat Security Advisory: Migration Toolkit for Applications security and bug fix update","vulnerabilityIds":["CVE-2023-26159","CVE-2023-26364","CVE-2023-36479","CVE-2023-45857","CVE-2023-48631","CVE-2024-1023","CVE-2024-1132","CVE-2024-1300","CVE-2024-25710","CVE-2024-26308","CVE-2024-28849","CVE-2024-29131","CVE-2024-29133","CVE-2024-29180"]},{"id":"RHSA-2024:2941","title":"Red Hat Security Advisory: RHACS 4.4 enhancement and security update","vulnerabilityIds":["CVE-2023-45288","CVE-2023-45289","CVE-2023-45290","CVE-2024-24783","CVE-2024-24784","CVE-2024-29180"]},{"id":"WID-SEC-W-2024-1091","title":"Red Hat OpenShift: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2024-29180","CVE-2024-31990"]},{"id":"RHSA-2024:4873","title":"Red Hat Security Advisory: Apicurio Registry (container images) release and security update [ 2.6.1 GA ]","vulnerabilityIds":["CVE-2023-51775","CVE-2024-2700","CVE-2024-22201","CVE-2024-29041","CVE-2024-29180"]},{"id":"RHSA-2025:8551","title":"Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.18 Bug Fix Update","vulnerabilityIds":["CVE-2024-11831","CVE-2024-21536","CVE-2024-21538","CVE-2024-29041","CVE-2024-29180","CVE-2024-37890","CVE-2024-39249","CVE-2024-45338","CVE-2024-45590","CVE-2024-48910"]},{"id":"RHSA-2024:0041","title":"Red Hat Security Advisory: OpenShift Container Platform 4.16.0 bug fix and security update","vulnerabilityIds":["CVE-2019-25210","CVE-2023-45142","CVE-2023-45289","CVE-2023-47108","CVE-2023-48795","CVE-2023-49569","CVE-2024-0874","CVE-2024-22189","CVE-2024-24783","CVE-2024-24784","CVE-2024-24785","CVE-2024-24786","CVE-2024-28110","CVE-2024-28176","CVE-2024-28180","CVE-2024-28849","CVE-2024-29180"]},{"id":"RHSA-2024:3316","title":"Red Hat Security Advisory: Migration Toolkit for Applications security and bug fix update","vulnerabilityIds":["CVE-2023-26159","CVE-2023-26364","CVE-2023-39326","CVE-2023-45286","CVE-2023-45287","CVE-2023-45288","CVE-2023-45857","CVE-2023-48631","CVE-2024-24786","CVE-2024-28849","CVE-2024-29180"]},{"id":"WID-SEC-W-2024-1226","title":"Red Hat OpenShift: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2020-26555","CVE-2021-25220","CVE-2021-29390","CVE-2021-43618","CVE-2022-0480","CVE-2022-2795","CVE-2022-3094","CVE-2022-38096","CVE-2022-40090","CVE-2022-45934","CVE-2022-48554","CVE-2022-48624","CVE-2023-24023","CVE-2023-25193","CVE-2023-25775","CVE-2023-26159","CVE-2023-26364","CVE-2023-28322","CVE-2023-28464","CVE-2023-28866","CVE-2023-2975","CVE-2023-31083","CVE-2023-31122","CVE-2023-3446","CVE-2023-3567","CVE-2023-3618","CVE-2023-37453","CVE-2023-3817","CVE-2023-38469","CVE-2023-38470","CVE-2023-38471","CVE-2023-38472","CVE-2023-38473","CVE-2023-38546","CVE-2023-39189","CVE-2023-39193","CVE-2023-39194","CVE-2023-39198","CVE-2023-39326","CVE-2023-40745","CVE-2023-41175","CVE-2023-4133","CVE-2023-42754","CVE-2023-42756","CVE-2023-43785","CVE-2023-43786","CVE-2023-43787","CVE-2023-43788","CVE-2023-43789","CVE-2023-4408","CVE-2023-45286","CVE-2023-45287","CVE-2023-45288","CVE-2023-45289","CVE-2023-45290","CVE-2023-45857","CVE-2023-45863","CVE-2023-46218","CVE-2023-46862","CVE-2023-47038","CVE-2023-48631","CVE-2023-50387","CVE-2023-50868","CVE-2023-51043","CVE-2023-51779","CVE-2023-51780","CVE-2023-52425","CVE-2023-52434","CVE-2023-52448","CVE-2023-52476","CVE-2023-52489","CVE-2023-52522","CVE-2023-52529","CVE-2023-52574","CVE-2023-52578","CVE-2023-52580","CVE-2023-52581","CVE-2023-52597","CVE-2023-52610","CVE-2023-52620","CVE-2023-5678","CVE-2023-6040","CVE-2023-6121","CVE-2023-6129","CVE-2023-6176","CVE-2023-6228","CVE-2023-6237","CVE-2023-6240","CVE-2023-6531","CVE-2023-6546","CVE-2023-6622","CVE-2023-6915","CVE-2023-6931","CVE-2023-6932","CVE-2023-7008","CVE-2024-0565","CVE-2024-0727","CVE-2024-0841","CVE-2024-1085","CVE-2024-1086","CVE-2024-1394","CVE-2024-1488","CVE-2024-21011","CVE-2024-21012","CVE-2024-21068","CVE-2024-21085","CVE-2024-21094","CVE-2024-22365","CVE-2024-24783","CVE-2024-24784","CVE-2024-24785","CVE-2024-24786","CVE-2024-25062","CVE-2024-25742","CVE-2024-25743","CVE-2024-26582","CVE-2024-26583","CVE-2024-26584","CVE-2024-26585","CVE-2024-26586","CVE-2024-26593","CVE-2024-26602","CVE-2024-26609","CVE-2024-26633","CVE-2024-27316","CVE-2024-28834","CVE-2024-28835","CVE-2024-28849","CVE-2024-29180","CVE-2024-2961","CVE-2024-33599","CVE-2024-33600","CVE-2024-33601","CVE-2024-33602"]},{"id":"RHSA-2024:4520","title":"Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.7.16 security and bug fix update","vulnerabilityIds":["CVE-2023-45290","CVE-2024-24783","CVE-2024-24784","CVE-2024-24785","CVE-2024-29180","CVE-2024-30255"]},{"id":"RHSA-2025:8544","title":"Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.14 Bug Fix Update","vulnerabilityIds":["CVE-2024-11831","CVE-2024-21536","CVE-2024-21538","CVE-2024-29041","CVE-2024-29180","CVE-2024-37890","CVE-2024-39249","CVE-2024-45338","CVE-2024-45590","CVE-2024-48910","CVE-2025-22868","CVE-2025-30204"]},{"id":"RHSA-2024:7164","title":"Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.8.4 security and bug fix update","vulnerabilityIds":["CVE-2019-25211","CVE-2023-45288","CVE-2023-45289","CVE-2024-3727","CVE-2024-4068","CVE-2024-24788","CVE-2024-28180","CVE-2024-28849","CVE-2024-28863","CVE-2024-29018","CVE-2024-29041","CVE-2024-29180","CVE-2024-39338"]},{"id":"RHEA-2024:7870","title":"Red Hat Enhancement Advisory: Red Hat OpenShift Pipelines Operator Bundle 1.16.0 release","vulnerabilityIds":["CVE-2024-28863","CVE-2024-29041","CVE-2024-29180","CVE-2024-39338"]},{"id":"msrc_CVE-2024-29180","title":"webpack-dev-middleware Path Traversal vulnerability","vulnerabilityIds":["CVE-2024-29180"]},{"id":"RHSA-2026:61783","title":"Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage","vulnerabilityIds":["CVE-2024-29180","CVE-2026-1965","CVE-2026-3783","CVE-2026-5704","CVE-2026-6322","CVE-2026-6653","CVE-2026-8286","CVE-2026-9547","CVE-2026-11822","CVE-2026-11824","CVE-2026-11979","CVE-2026-14164","CVE-2026-15588","CVE-2026-18477","CVE-2026-18508","CVE-2026-41991","CVE-2026-41992","CVE-2026-45409","CVE-2026-45623","CVE-2026-54284","CVE-2026-54371","CVE-2026-56434","CVE-2026-58010","CVE-2026-58011","CVE-2026-58012","CVE-2026-58013","CVE-2026-58014","CVE-2026-58015","CVE-2026-58055","CVE-2026-59868","CVE-2026-59869","CVE-2026-59893","CVE-2026-60005","CVE-2026-67213","CVE-2026-67214","CVE-2026-71491","CVE-2026-73643","CVE-2026-75899","CVE-2026-75931","CVE-2026-75975","CVE-2026-76172","CVE-2026-76844"]},{"id":"RHSA-2024:2817","title":"Red Hat Security Advisory: Errata Advisory for Red Hat OpenShift GitOps v1.10.5 security update","vulnerabilityIds":["CVE-2024-29180"]},{"id":"RHSA-2024:6755","title":"Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.16.2 security and bug fix update","vulnerabilityIds":["CVE-2023-39325","CVE-2024-6104","CVE-2024-24789","CVE-2024-28176","CVE-2024-28863","CVE-2024-29180","CVE-2024-37890","CVE-2024-41818"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-1028","identifiers":["EUVD-2024-1028","CVE-2024-29180","GHSA-wr3j-pwj9-hqq6"]},"retained":false,"historicalAffected":[]},{"revision":"23b31ef38918476a92f5b241abc6c637","observedAt":"2026-10-24T23:17:34.532+00:00","statement":{"source":"nvd","id":"CVE-2024-29180","aliases":[],"title":"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 devel…","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.","state":0,"publishedAt":"2024-03-21T17:15:09.69+00:00","modifiedAt":"2026-06-17T07:22:34.437+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":7.4,"severity":"HIGH"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"severity":"HIGH"}],"references":["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/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/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/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-29180","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-22"],"productCriteria":["cpe:2.3:a:webpack.js:webpack-dev-middleware:*:*:*:*:*:*:*:*"],"sourceDates":{"published":"2024-03-21T17:15:09.690","lastModified":"2026-06-17T07:22:34.437"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-29180","identifiers":["CVE-2024-29180"]},"retained":false,"historicalAffected":[]},{"revision":"705731a135544a1ead76fcf40bcb2c50","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-wr3j-pwj9-hqq6","aliases":["CVE-2024-29180"],"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.","state":0,"publishedAt":"2024-03-21T18:59:28+00:00","modifiedAt":"2026-10-03T03:55:42.5898197+00:00","affected":[{"ecosystem":"npm","name":"webpack-dev-middleware","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.1.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"webpack-dev-middleware","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.0.0"},{"kind":"fixed","version":"6.1.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"webpack-dev-middleware","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.3.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6","https://nvd.nist.gov/vuln/detail/CVE-2024-29180","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","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"],"sourceUrl":"https://github.com/advisories/GHSA-wr3j-pwj9-hqq6","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-wr3j-pwj9-hqq6","identifiers":["GHSA-wr3j-pwj9-hqq6","CVE-2024-29180"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-11T18:57:20.2923258+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-11T18:57:20.2923258+00:00","lastSuccessAt":"2026-11-11T18:57:20.5900147+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:20.5900175+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-de3b77103708811b6494d2ff7c979037d73ae579742cd1649a5c765137ae5083-3c00b79c9391131991e27b9943a0dadf4eaae3bedbca1cd8e56798cb05f5baee","complete":true,"records":424226,"lastAttemptAt":"2026-11-11T18:57:17.9650425+00:00","lastSuccessAt":"2026-11-11T18:57:17.3257068+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:17.9650425+00:00","snapshotPublishedAt":"2026-11-11T18:28:25+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-151835c633b847cdbe04eb3670f18ec8","complete":false,"records":13759,"lastAttemptAt":"2026-11-11T19:07:41.1040307+00:00","lastSuccessAt":"2026-11-11T19:07:41.096+00:00","error":"82 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-11T19:07:41.096+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13500,"expectedIdentifiers":13813,"failedIdentifiers":82},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-11T18:57:20.2923258+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-11T18:57:20.2923258+00:00","lastSuccessAt":"2026-11-11T18:57:24.3127212+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:24.3127229+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-ac7d350109df40bdb6ae654767d5a7ea","complete":false,"records":13753,"lastAttemptAt":"2026-11-11T18:57:50.2198185+00:00","lastSuccessAt":"2026-11-11T18:57:50.212+00:00","error":"100 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-11T18:57:50.212+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13713,"expectedIdentifiers":13813,"failedIdentifiers":100},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-11T18:57:19.8584027+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:19.8584027+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-11T18:57:18.9614553+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:18.9614553+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-11T18:57:20.1156075+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:20.1156075+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-757d3692f9a7b34792dad960197f3cc953a54db59b7d0ffe3835a0ed9926f76b","complete":true,"records":231690,"lastAttemptAt":"2026-11-11T18:57:19.1723839+00:00","lastSuccessAt":"2026-11-11T17:59:27.5166432+00:00","error":null,"lastVerifiedAt":"2026-11-11T18:57:19.1723839+00:00","snapshotPublishedAt":"2026-11-11T17:48:14+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}