Path traversal in webpack-dev-middleware - CVE-2026-76844

 

Path traversal in webpack-dev-middleware - CVE-2026-76844

Published: September 7, 2026


Vulnerability identifier: #VU147265
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-76844
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper limitation of a pathname to a restricted directory in getFilenameFromUrl when handling requests with a publicPath that does not end in a slash. A remote attacker can send a specially crafted request to disclose sensitive information.

User interaction is required.


Affected software

webpack-dev-middleware

How to mitigate CVE-2026-76844

Install security update from vendor's website.

webpack-dev-middleware - addressed in versions 7.4.6, 8.3.0

External References

Related Security Bulletins