cve.bz

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

8.3 highEPSS 0.7%Fix available

High (8.3) in webpack webpack-dev-middleware. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in webpack-dev-middleware 7.4.6, 8.3.0.

On this page
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.

Severity

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

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
EPSS
0.7% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-08-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
VulnCheck (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-76844 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-76844?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-76844?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-76844 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
webpack-dev-middlewarefrom 5.3.4 through 5.3.4
webpack-dev-middlewarefrom 6.1.2 through 6.1.3
webpack-dev-middlewarefrom 7.1.0 before 7.4.6
webpack-dev-middlewarefrom 8.0.0 before 8.3.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g84c-rxfj-3j2cnpmwebpack-dev-middleware>=8.0.0 <8.3.08.3.0
GHSA-g84c-rxfj-3j2cnpmwebpack-dev-middleware<7.4.67.4.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12zlibno fix listedDEBIAN-CVE-2026-76844
Debian13zlib1:1.3.dfsg+really1.3.1-1+deb13u1DEBIAN-CVE-2026-76844
Debian14zlib1:1.3.dfsg+really1.3.2-4DEBIAN-CVE-2026-76844
Azure Linux3zlib1.3.2-2AZL-105345

From the distributions' data via OSV.dev: the Debian Security Tracker; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A path traversal vulnerability exists in the `getFilenameFromUrl` function of webpack-dev-middleware. When `publicPath` is configured without a trailing slash, the middleware performs string prefix matching and checks for `..` segments before stripping the prefix, allowing an unauthenticated remote attacker to request crafted URLs (such as `/assets../secret`) and read arbitrary files one directory above the output directory when serving from the physical filesystem via `writeToDisk` or a custom `outputFileSystem`.

Red Hat's mitigation

Append a trailing slash to the `publicPath` option in the webpack-dev-middleware configuration (for example, changing `publicPath: '/assets'` to `publicPath: '/assets/'`). Additionally, disable `writeToDisk` or avoid serving directly from the physical filesystem if not strictly required, and ensure the development server is not exposed to untrusted networks.

ProductPackageStateAdvisory
Red Hat Data Grid 8.6.3Fixed 2026-09-21RHSA-2026:69296
Red Hat Discovery 2discovery/discovery-ui-rhel9:1788206196Fixed 2026-08-31RHSA-2026:61783
Red Hat Migration Toolkit 1.8rhmtc/openshift-migration-ui-rhel8:1789546373Fixed 2026-09-17RHSA-2026:68681
Red Hat OpenShift AI 3.4rhoai/odh-feature-server-rhel9:1792685074Fixed 2026-10-29RHSA-2026:92510
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-must-gather-rhel9Affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-operator-bundleAffected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel9-operatorAffected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-console-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-419-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-pf5-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-console-plugin-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-agentic-console-rhel9Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel9Not affected
OpenShift Serverlessopenshift-serverless-1/logic-rhel9-operatorAffected
OpenShift Service Mesh 3openshift-service-mesh/kiali-operator-bundleAffected
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9-operatorAffected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Affected
Red Hat AMQ Broker 7amq-broker-bin.zipAffected
37 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-76844.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON