What’s Vulnerable › Vulnerabilities
CVE-2022-37603: loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-10-14 · 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 url variable in interpolateName.js.
Affected products
- Webpack.Js Loader-Utils: 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#L107
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38
- https://github.com/webpack/loader-utils/issues/213
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERN6YE3DS7NBW7UH44SCJBMNC2NWQ7SM/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KAC5KQ2SEWAMQ6UZAUBZ5KXKEOESH375/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VNV2GNZXOTEDAJRFH3ZYWRUBGIVL7BSU/
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L107
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38
- https://github.com/webpack/loader-utils/issues/213
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERN6YE3DS7NBW7UH44SCJBMNC2NWQ7SM/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KAC5KQ2SEWAMQ6UZAUBZ5KXKEOESH375/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VNV2GNZXOTEDAJRFH3ZYWRUBGIVL7BSU/
Get alerted when CVE-2022-37603 or the next vulnerability affects your stack