CVE-2026-76844: high-severity vulnerability in webpack-dev-middleware
webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.3epss 0.7%
from disclosure to weapon78 days
Published on NVDAug 24
1st PoC+78d
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Affected products
webpack · webpack-dev-middlewarepublic PoCs found — 2
githubgithub.com/perplexedyawdie/cve-2026-76844-lab★ 0cve_referencegist.github.com/thesmartshadow/e0b9481792afb7c31e86fee1ff084490unverified⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.
Related CVEs — webpack-dev-middleware
In the same product, most dangerous first.
References
https://github.com/advisories/GHSA-wr3j-pwj9-hqq6https://github.com/webpack/webpack-dev-middlewarehttps://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.jshttps://github.com/webpack/webpack-dev-middleware/commit/13344e78b26d88fe9b7c8381a3860e248a52359bhttps://github.com/webpack/webpack-dev-middleware/commit/cefccbac330c29052fc6dffe85fd292ea2ac782bhttps://github.com/webpack/webpack-dev-middleware/releases/tag/v7.4.6https://github.com/webpack/webpack-dev-middleware/releases/tag/v8.3.0https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-g84c-rxfj-3j2c