CVE-2026-76844

GHSA-g84c-rxfj-3j2c · published 24 Aug 2026 · updated 16 Nov 2026

webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath

7.4HighCVSS 7.4EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 7.4.6, 8.3.0, webpack-dev-middleware 7.4.6 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
webpack>=5.3.4 <=5.3.4, >=6.1.2 <=6.1.3, >=7.1.0 <7.4.6, >=8.0.0 <8.3.07.4.6, 8.3.0
npm: webpack-dev-middleware<7.4.6, >=8.0.0 <8.3.07.4.6, 8.3.0

Exploit evidence

2 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in webpack-dev-middleware (npm), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-76844 severity on Zeptric[![CVE-2026-76844](https://zeptric.io/badge/cve/CVE-2026-76844.svg)](https://zeptric.io/cve/CVE-2026-76844)