Red Hat VEX
RHVEX-CVE-2026-76844
webpack-dev-middleware: webpack-dev-middleware before 7.4.6 and 8.3.0 Path Traversal via Non-Slash-Terminated publicPath
Details
A flaw was found in webpack-dev-middleware. An unauthenticated remote attacker can exploit this vulnerability to read arbitrary files outside the intended base directory on the host system, leading to unauthorized information disclosure. This issue occurs when the public path is configured without a trailing slash, allowing crafted Uniform Resource Locators (URLs) to bypass path traversal checks before the prefix is stripped. The vulnerability affects deployments where the middleware serves files directly from the physical filesystem.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | grafana | All versions, no fix yet |
| Red Hat:enterprise_linux:10 | grafana-selinux | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-76844
- https://bugzilla.redhat.com/show_bug.cgi?id=2521896
- https://www.cve.org/CVERecord?id=CVE-2026-76844
- https://nvd.nist.gov/vuln/detail/CVE-2026-76844
- https://github.com/advisories/GHSA-wr3j-pwj9-hqq6
- https://github.com/webpack/webpack-dev-middleware
- https://github.com/webpack/webpack-dev-middleware/blob/v8.1.1/src/middleware.js
- https://www.vulncheck.com/advisories/webpack-dev-middleware-path-traversal-via-offset-slice-on-a-non-slash-terminated-publicpath