CVE-2024-29180
CVSS v3
7.5
HIGH
EPSS Score
1.2 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for webpack-dev-middleware.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- webpack-dev-middlewarenpmall versions · fixed in 5.3.4
Vendor advisories
webpack-dev-middleware: lack of URL validation may lead to file leak
migration-toolkit-virtualization/mtv-console-plugin-rhel9 as a component of Migration Toolkit for Virtualization · workload-availability/node-remediation-console-rhel8 as a component of Node HealthCheck Operator · webpack-dev-middleware as a component of OpenShift Serverless
Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.14.18 Bug Fix Update
Red Hat Security Advisory: Red Hat OpenShift Data Foundation 4.15.14 Bug Fix Update
Red Hat Enhancement Advisory: Red Hat OpenShift Pipelines Operator Bundle 1.16.0 release
Red Hat Security Advisory: Migration Toolkit for Containers (MTC) 1.8.4 security and bug fix update
13 more advisories
Description
Prior to versions 7.1.0, 6.1.2, and 5.3.4, the webpack-dev-middleware development middleware for devpack does not validate the supplied URL address sufficiently before returning the local file. It is possible to access any file on the developer's machine. The middleware can either work with the physical filesystem when reading the files or it can use a virtualized in-memory `memfs` filesystem. If `writeToDisk` configuration option is set to `true`, the physical filesystem is used. The `getFilenameFromUrl` method is used to parse URL and build the local file path. The public path prefix is stripped from the URL, and the `unsecaped` path suffix is appended to the `outputPath`. As the URL is not unescaped and normalized automatically before calling the midlleware, it is possible to use `%2e` and `%2f` sequences to perform path traversal attack. Developers using `webpack-dev-server` or `webpack-dev-middleware` are affected by the issue. When the project is started, an attacker might access any file on the developer's machine and exfiltrate the content. If the development server is listening on a public IP address (or `0.0.0.0`), an attacker on the local network can access the local files without any interaction from the victim (direct connection to the port). If the server allows access from third-party domains, an attacker can send a malicious link to the victim. When visited, the client side script can connect to the local server and exfiltrate the local files. Starting with fixed versions 7.1.0, 6.1.2, and 5.3.4, the URL is unescaped and normalized before any further processing.
Technical details
- Published
- 2024-03-21
Frequently asked questions
What is CVE-2024-29180?
Is CVE-2024-29180 actively exploited?
What is the CVSS score for CVE-2024-29180?
Running webpack-dev-middleware? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2026-76844same product
- CVE-2024-4068same advisory
- CVE-2024-3727same advisoryContainers/image: digest type does not guarantee valid type
- CVE-2024-39338same advisory
- CVE-2024-28849same advisory
- CVE-2024-21536same advisory
- CVE-2024-24788same advisoryMalformed DNS message can cause infinite loop in net
- CVE-2024-28863same advisory