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 getFilenameFr...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12zlib |
All versions→ Not listed |
Not listed |
| Debian:13zlib |
< 1:1.3.dfsg+really1.3.1-1+deb13u1→ 1:1.3.dfsg+really1.3.1-1+deb13u1 |
1:1.3.dfsg+really1.3.1-1+deb13u1 |
| Debian:14zlib |
< 1:1.3.dfsg+really1.3.2-4→ 1:1.3.dfsg+really1.3.2-4 |
1:1.3.dfsg+really1.3.2-4 |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org