CVE-2024-29180: Path traversal in webpack-dev-middleware
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.
References
- github.com/advisories/GHSA-wr3j-pwj9-hqq6
- github.com/webpack/webpack-dev-middleware
- github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/getFilenameFromUrl.js
- github.com/webpack/webpack-dev-middleware/blob/7ed24e0b9f53ad1562343f9f517f0f0ad2a70377/src/utils/setupOutputFileSystem.js
- github.com/webpack/webpack-dev-middleware/commit/189c4ac7d2344ec132a4689e74dc837ec5be0132
- github.com/webpack/webpack-dev-middleware/commit/9670b3495da518fe667ff3428c5e4cb9f2f3d353
- github.com/webpack/webpack-dev-middleware/commit/e10008c762e4d5821ed6990348dabf0d4d93a10e
- github.com/webpack/webpack-dev-middleware/releases/tag/v5.3.4
- github.com/webpack/webpack-dev-middleware/releases/tag/v6.1.2
- github.com/webpack/webpack-dev-middleware/releases/tag/v7.1.0
- github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-wr3j-pwj9-hqq6
- nvd.nist.gov/vuln/detail/CVE-2024-29180
Detect and mitigate CVE-2024-29180 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →