Webpack webpack-dev-middleware
webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath
webpack-dev-middleware 5.3.4, 6.1.2 through 6.1.3, 7.1.0 before 7.4.6, and 8.0.0 before 8.3.0 contains a path traversal vulnerability in getFilenameFromUrl that bypasses the fix for CVE-2024-29180: a publicPath without a trailing slash is matched by string prefix, and the '..' guard runs before that prefix is stripped. Unauthenticated attackers can request a path such as /assets../secret to read files one directory above the output directory when the middleware serves from the physical filesystem through writeToDisk or a custom outputFileSystem.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.3.4, <= 5.3.4
- >= 6.1.2, <= 6.1.3
- >= 7.1.0, < 7.4.6
- >= 8.0.0, < 8.3.0
Fixed in 7.4.6, 8.3.0
Mitigation
Upgrade webpack-dev-middleware to 7.4.6 or 8.3.0 or later.
References
- Vendor advisory github.com/webpack/webpack-dev-middleware/secu…
- Patch github.com/webpack/webpack-dev-middleware/comm…
- Patch github.com/webpack/webpack-dev-middleware/comm…
3 more
- Release notes github.com/webpack/webpack-dev-middleware/rele…
- Release notes github.com/webpack/webpack-dev-middleware/rele…
- Vendor advisory github.com/advisories/GHSA-wr3j-pwj9-hqq6
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| PoC Index | https://gist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490 | unknown | 14 Nov 2026 |