
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-76844 is a path traversal vulnerability in the webpack-dev-middleware npm package, specifically in the getFilenameFromUrl function. It is an incomplete fix for CVE-2024-29180: the traversal guard (UP_PATH_REGEXP) and offset-slice logic introduced by that prior fix can be bypassed when publicPath is configured without a trailing slash. Affected versions span 5.3.4, 6.1.2–6.1.3, 7.1.0–7.4.5, and 8.0.0–8.1.1. Disclosed on August 24, 2026, it carries a CVSS v3.1 score of 7.4 (High) and a CVSS v4.0 score of 8.3 (High) (GitHub Advisory).
The root cause (CWE-22: Path Traversal) lies in a mismatch between the traversal guard and the file path construction logic in getFilenameFromUrl. The guard UP_PATH_REGEXP is applied to path.normalize('./${pathname}') and only matches .. that appears as a standalone path segment delimited by slashes. However, the file path is built by slicing pathname at a fixed character offset equal to publicPathPathname.length and passing the result to path.join(outputPath, ...). When publicPath is set to a value without a trailing slash (e.g., /assets), a crafted request like GET /assets../.env produces the pathname /assets../.env. The .. sits inside the segment assets.. and is not detected by the guard, but the offset slice cuts within that segment, handing ../.env to path.join, which resolves one directory above outputPath. Exploitation requires the middleware to be backed by the physical filesystem (writeToDisk: true or a custom outputFileSystem); the default in-memory memfs volume is not affected. Traversal depth is limited to a single directory level because URL parsing collapses separately delimited .. segments before the guard runs (GitHub Advisory, middleware source).
Successful exploitation allows an unauthenticated remote attacker to read arbitrary files from the parent directory of the configured outputPath on the server's physical filesystem. Sensitive files such as .env (containing API keys, database credentials, or secrets), configuration files, and private source code could be exfiltrated. There is no integrity or availability impact; the vulnerability is limited to confidentiality loss, scoped to one directory level above outputPath (GitHub Advisory).
As of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The NVD SSVC assessment classifies exploitation status as "poc" (indicating PoC-level knowledge exists in the advisory description), with automation rated "no" and technical impact "partial." The EPSS score is approximately 0.37% (30th percentile), reflecting low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation requires a non-default configuration (writeToDisk: true or custom outputFileSystem) and a publicPath without a trailing slash (GitHub Advisory).
webpack-dev-middleware with publicPath configured without a trailing slash (e.g., /assets) and writeToDisk: true or a custom outputFileSystem. These are typically internal development environments, but may be exposed on local networks or public IPs./assets) by browsing the application or inspecting network traffic.GET /assets../.env HTTP/1.1. The .. is embedded inside the segment assets.., bypassing the UP_PATH_REGEXP guard.curl http://target:8080/assets../.env).<outputPath>/../.env and returns the file contents in the HTTP response, exposing secrets or configuration data (GitHub Advisory)./<publicPath>../<filename> (e.g., /assets../.env, /assets../.git/config) in web server access logs; requests to the development server from unexpected IP addresses.assets.. immediately followed by /.env, /.git, or other sensitive filenames; HTTP 200 responses to such requests when the server is configured with physical filesystem access.A patch is available; users should update webpack-dev-middleware to a fixed version beyond the affected ranges (5.3.4, 6.1.2–6.1.3, 7.1.0–7.4.5, 8.0.0–8.1.1). As immediate workarounds: (1) ensure publicPath is configured with a trailing slash (e.g., "/assets/" instead of "/assets"); (2) avoid setting writeToDisk: true in development environments; (3) use the default memfs in-memory filesystem, which is not vulnerable since it only contains build output. Development servers should not be exposed to untrusted networks (GitHub Advisory).
The vulnerability was noted by automated security tracking services and aggregators shortly after disclosure on August 24, 2026, including VulnDB, CVE.report, and Radar/OffSeq. A Mastodon post by RedPacketSecurity flagged the advisory. No significant vendor statements or notable researcher commentary beyond the advisory itself have been identified at this time (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."