{"id":"CVE-2026-76844","published":"2026-08-24T13:12:01Z","modified":"2026-11-13T14:15:54Z","title":"webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath","vendor":"webpack","product":"webpack-dev-middleware","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00682,"percentile":0.53418,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/webpack/webpack-dev-middleware","tags":["product"]},{"url":"https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-g84c-rxfj-3j2c","tags":["vendor-advisory"]},{"url":"https://github.com/webpack/webpack-dev-middleware/commit/13344e78b26d88fe9b7c8381a3860e248a52359b","tags":["patch"]},{"url":"https://github.com/webpack/webpack-dev-middleware/commit/cefccbac330c29052fc6dffe85fd292ea2ac782b","tags":["patch"]},{"url":"https://github.com/webpack/webpack-dev-middleware/releases/tag/v8.3.0","tags":["release-notes"]},{"url":"https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.4.6","tags":["release-notes"]},{"url":"https://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.js","tags":["technical-description"]},{"url":"https://github.com/advisories/GHSA-wr3j-pwj9-hqq6","tags":["related"]},{"url":"https://www.vulncheck.com/advisories/webpack-dev-middleware-path-traversal-via-offset-slice-on-a-non-slash-terminated-publicpath","tags":["third-party-advisory"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":10.68},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"webpack","affectedVersions":[{"vendor":"webpack","product":"webpack-dev-middleware","versions":[">= 5.3.4, <= 5.3.4",">= 6.1.2, <= 6.1.3",">= 7.1.0, < 7.4.6",">= 8.0.0, < 8.3.0"]}],"fixedVersions":[{"vendor":"webpack","product":"webpack-dev-middleware","versions":["7.4.6","8.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-26T18:22:33.313523Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"webpack-dev-middleware","vulnerableRanges":[">=8.0.0, <8.3.0","<7.4.6"],"patched":["8.3.0","7.4.6"],"from":["GHSA-g84c-rxfj-3j2c"],"provenance":"source"}],"summary":{"text":"zlib versions 1.2.11 through 1.3.2 contain a heap buffer overflow in the gzwrite path, where a failed underlying write() leaves strm.next_in pointing at the caller's buffer and a later gz* write call derives a position from that stale pointer and writes past a heap allocation. An attacker with network access can trigger it without authentication or user interaction, but it requires a write failure to occur (such as EPIPE on a blocking descriptor), and in versions before 1.3.1.2 a gzclearerr() call must follow the failed write.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:48Z"},"euvd":{"id":"EUVD-2026-64850","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-webpack-dev-middleware-cve-2024-29180","parents":[{"from":"CVE-2024-29180","to":"CVE-2026-76844","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"…e 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…","from":"CVE.org","in":"CVE-2026-76844"},{"kind":"osv-related","provenance":"source","id":"GHSA-wr3j-pwj9-hqq6","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-g84c-rxfj-3j2c","via":"reference","url":"https://github.com/advisories/GHSA-wr3j-pwj9-hqq6"},{"kind":"same-code","provenance":"machine","files":["src/middleware.js","src/utils/getFilenameFromUrl.js"],"commits":["https://github.com/webpack/webpack-dev-middleware/commit/189c4ac7d2344ec132a4689e74dc837ec5be0132","https://github.com/webpack/webpack-dev-middleware/commit/9670b3495da518fe667ff3428c5e4cb9f2f3d353","https://github.com/webpack/webpack-dev-middleware/commit/13344e78b26d88fe9b7c8381a3860e248a52359b","https://github.com/webpack/webpack-dev-middleware/commit/cefccbac330c29052fc6dffe85fd292ea2ac782b"],"basis":"shared function","functions":["getFilenameFromUrl"]},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same product + CWE + description similarity"}]}]}}