What’s Vulnerable › Vulnerabilities
CVE-2022-37599: loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-11 · updated 2026-06-17
- Weakness: CWE-1333
Description
A Regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils 2.0.0 via the resourcePath variable in interpolateName.js.
Affected products
- Webpack.Js Loader-Utils: from 1.0.0 before 1.4.2; from 2.0.0 before 2.0.4; from 3.0.0 before 3.2.1 — fixed in 1.4.2, 2.0.4, 3.2.1
- Npm Loader-Utils: from 1.0.0 before 1.4.2; from 2.0.0 before 2.0.4; from 3.0.0 before 3.2.1 — fixed in 1.4.2, 2.0.4, 3.2.1
How to fix
Upgrade to a fixed version: Webpack.Js Loader-Utils 1.4.2, 2.0.4, 3.2.1; Npm Loader-Utils 1.4.2, 2.0.4, 3.2.1. Check the vendor advisory for mitigations.
References
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L83
- https://github.com/webpack/loader-utils/issues/211
- https://github.com/webpack/loader-utils/issues/216
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L83
- https://github.com/webpack/loader-utils/issues/211
- https://github.com/webpack/loader-utils/issues/216
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/
Get alerted when CVE-2022-37599 or the next vulnerability affects your stack