High severity7.4NVD Advisory· Published Aug 24, 2026· Updated Nov 13, 2026
CVE-2026-76844
CVE-2026-76844
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
webpack-dev-middlewarenpm | >= 8.0.0, < 8.3.0 | 8.3.0 |
webpack-dev-middlewarenpm | < 7.4.6 | 7.4.6 |
Affected products
1- Range: 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
Patches
Vulnerability mechanics
References
11- github.com/advisories/GHSA-g84c-rxfj-3j2cghsaADVISORY
- github.com/advisories/GHSA-wr3j-pwj9-hqq6nvdADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-76844ghsaADVISORY
- github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.jsnvdWEB
- github.com/webpack/webpack-dev-middleware/commit/13344e78b26d88fe9b7c8381a3860e248a52359bnvdWEB
- github.com/webpack/webpack-dev-middleware/commit/cefccbac330c29052fc6dffe85fd292ea2ac782bnvdWEB
- github.com/webpack/webpack-dev-middleware/pull/2404ghsaWEB
- github.com/webpack/webpack-dev-middleware/releases/tag/v7.4.6nvdWEB
- github.com/webpack/webpack-dev-middleware/releases/tag/v8.3.0nvdWEB
- github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-g84c-rxfj-3j2cnvdWEB
- www.vulncheck.com/advisories/webpack-dev-middleware-path-traversal-via-offset-slice-on-a-non-slash-terminated-publicpathnvdWEB
News mentions
0No linked articles in our index yet.