Path Traversal Vulnerability in webpack-dev-middleware by Webpack
CVE-2026-76844

8.3HIGH

Key Information:

Vendor

Webpack

Vendor
CVE Published:
24 August 2026

What is CVE-2026-76844?

The webpack-dev-middleware is vulnerable to a path traversal issue where the request pathname can circumvent restrictions and allow access to unauthorized files. This occurs due to an incomplete security guard that incorrectly verifies paths against malicious inputs, especially when the configured publicPath lacks a trailing slash. Attackers can exploit this through crafted requests, potentially gaining access to sensitive files outside the intended directory. Mitigation strategies include ensuring publicPath configurations end with a trailing slash and keeping middleware updated to the latest secure version.

Affected Version(s)

webpack-dev-middleware 5.3.4

webpack-dev-middleware 6.1.2 <= 6.1.3

webpack-dev-middleware 7.1.0 <= 7.4.5

References

CVSS V4

Score:
8.3
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Muhammad Sobirov
.