# CVE-2026-76844: webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath

- Severity: High 8.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-08-24T13:12:01.148Z
- Modified: 2026-11-30T16:15:08.063Z
- Also known as: GHSA-g84c-rxfj-3j2c
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- webpack-dev-middleware: from 5.3.4 up to 5.3.4; from 6.1.2 up to 6.1.3; from 7.1.0 before 7.4.6; from 8.0.0 before 8.3.0 (not affected: 7.4.6; 8.3.0)
- webpack-dev-middleware (npm): from 8.0.0 before 8.3.0; before 7.4.6

## Every score

- VulnCheck: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/webpack/webpack-dev-middleware> (package, product)
- <https://github.com/webpack/webpack-dev-middleware/security/advisories/GHSA-g84c-rxfj-3j2c> (vendor-advisory, web)
- <https://github.com/webpack/webpack-dev-middleware/commit/13344e78b26d88fe9b7c8381a3860e248a52359b> (patch, web)
- <https://github.com/webpack/webpack-dev-middleware/commit/cefccbac330c29052fc6dffe85fd292ea2ac782b> (patch, web)
- <https://github.com/webpack/webpack-dev-middleware/releases/tag/v8.3.0> (release-notes, web)
- <https://github.com/webpack/webpack-dev-middleware/releases/tag/v7.4.6> (release-notes, web)
- <https://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.js> (technical-description, web)
- <https://github.com/advisories/GHSA-wr3j-pwj9-hqq6> (advisory, related)
- <https://www.vulncheck.com/advisories/webpack-dev-middleware-path-traversal-via-offset-slice-on-a-non-slash-terminated-publicpath> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-76844> (advisory)
- <https://github.com/webpack/webpack-dev-middleware/pull/2404> (web)

## Sources

- CVE List: [CVE-2026-76844](https://www.cve.org/CVERecord?id=CVE-2026-76844), CVE Terms of Use, modified 2026-11-13
- GitHub Advisory Database: [GHSA-g84c-rxfj-3j2c](https://github.com/advisories/GHSA-g84c-rxfj-3j2c), CC-BY-4.0, modified 2026-11-30
- NVD: [CVE-2026-76844](https://nvd.nist.gov/vuln/detail/CVE-2026-76844), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-76844 · Whole record: https://cve.day/CVE-2026-76844.json · Rebuilt by cve.day 2026-11-30T16:37:24.883Z
