CVE-2026-76844

high

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.

References

https://github.com/perplexedyawdie/cve-2026-76844-lab

https://www.vulncheck.com/advisories/webpack-dev-middleware-path-traversal-via-offset-slice-on-a-non-slash-terminated-publicpath

https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-g84c-rxfj-3j2c

https://github.com/webpack/webpack-dev-middleware/releases/tag/v8.3.0

https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.4.6

https://github.com/webpack/webpack-dev-middleware/commit/cefccbac330c29052fc6dffe85fd292ea2ac782b

https://github.com/webpack/webpack-dev-middleware/commit/13344e78b26d88fe9b7c8381a3860e248a52359b

https://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.js

https://github.com/webpack/webpack-dev-middleware

https://github.com/advisories/GHSA-wr3j-pwj9-hqq6

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-64850

Details

Source: Mitre, NVD

Published: 2026-08-24

Updated: 2026-11-13

Named Vulnerability: GHSA-p3f5-w63m-mxphNamed Vulnerability: GHSA-g84c-rxfj-3j2c

Risk Information

CVSS v2

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

Severity: High

CVSS v3

Base Score: 7.4

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Severity: High

CVSS v4

Base Score: 8.3

Vector: 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

Severity: High

EPSS

EPSS: 0.00682