PatchSiren cyber security CVE debrief
CVE-2026-76844 webpack CVE debrief
CVE-2026-76844 is a path traversal vulnerability in webpack-dev-middleware. The vulnerability arises when the publicPath is not terminated with a slash, allowing an attacker to access files outside the intended directory. This occurs because the traversal guard only matches '..' as a whole path segment, while the containment test and file path construction allow an attacker to bypass the guard and access files outside the intended directory. Developers and administrators should assess their exposure and take necessary actions to prevent potential exploitation.
- Vendor
- webpack
- Product
- webpack-dev-middleware
- CVSS
- HIGH 8.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-24
- Original CVE updated
- 2026-09-24
- Advisory published
- 2026-08-24
- Advisory updated
- 2026-09-24
Who should care
Developers and administrators using webpack-dev-middleware in their applications should assess their exposure and take necessary actions to prevent potential exploitation. This includes verifying and updating their webpack-dev-middleware configuration to prevent exploitation and monitoring for suspicious requests.
Why it matters
CVE-2026-76844 is a path traversal vulnerability in webpack-dev-middleware that allows attackers to access files outside the intended directory. Developers and administrators should assess their exposure and take necessary actions to prevent potential exploitation.
- attackers may be able to access sensitive files outside the intended directory
- developers and administrators need to verify and update their webpack-dev-middleware configuration to prevent exploitation
- the vulnerability requires the middleware to be backed by the physical filesystem, which may not be the case in all deployments
Technical summary
The vulnerability is caused by the improper handling of the publicPath in webpack-dev-middleware. When the publicPath does not end with a slash, an attacker can craft a request that bypasses the traversal guard and accesses files outside the intended directory. The traversal depth is limited to a single directory because a separately delimited dot-dot segment is collapsed during URL parsing before the guard runs. This issue requires the middleware to be backed by the physical filesystem, which happens when writeToDisk is true or a custom outputFileSystem is supplied.
Defensive priority
High
Recommended defensive actions
- Update webpack-dev-middleware to the latest version
- Ensure publicPath is properly configured and terminated with a slash
- Monitor for suspicious requests to prevent potential exploitation
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The vulnerability is caused by the improper handling of the publicPath in webpack-dev-middleware. When the publicPath does not end with a slash, an attacker can craft a request that bypasses the traversal guard and accesses files outside the intended directory. The default publicPath value of 'auto' resolves to '/' and is not affected. This issue requires the middleware to be backed by the physical filesystem, which happens when writeToDisk is true or a custom outputFileSystem is supplied.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-76844 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-76844
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-76844 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-76844
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/advisories/GHSA-wr3j-pwj9-hqq6
-
Source reference
Unverified legacy reference
URL: https://github.com/webpack/webpack-dev-middleware
-
Source reference
Unverified legacy reference
URL: https://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.js
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/webpack-dev-middleware-path-traversal-via-offset-slice-on-a-non-slash-terminated-publicpath
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.