CVE-2026-76844webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath
Descripción
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.
Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.
Productos y versiones afectados
| Fabricante | Producto | Versiones | |
|---|---|---|---|
| webpack | webpack-dev-middleware | 5.3.4 – ≤ 5.3.4, 6.1.2 – ≤ 6.1.3, 7.1.0 – < 7.4.6, fixed 7.4.6, 8.0.0 – < 8.3.0, fixed 8.3.0 | |
| webpack.js | webpack-dev-middleware | 5.3.4 – ≤ 5.3.4 |
Referencias y parches
- https://github.com/webpack/webpack-dev-middleware product
- GitHub Security Advisory (GHSA-g84c-rxfj-3j2c) vendor-advisory
- Patch Commit patch
- Patch Commit patch
- Release Notes release-notes
- Release Notes release-notes
- https://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.js technical-description
- https://github.com/advisories/GHSA-wr3j-pwj9-hqq6
- VulnCheck Advisory: webpack-dev-middleware Path Traversal via Offset Slice on a Non-Slash-Terminated publicPath third-party-advisory