CVE-2022-37599
HIGH 7.5CVSS 3.1loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)
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.
- Published
- 11 Oct 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-hhq3-ff78-jv3g
- Sources
- NVDJSONOSV GHSA-hhq3-ff78-jv3gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | webpack.js | loader-utilscpe:2.3:a:webpack.js:loader-utils:*:*:*:*:*:*:*:* |
>= 1.0.0, < 1.4.2 | 1.4.2 |
| NVD | webpack.js | loader-utilscpe:2.3:a:webpack.js:loader-utils:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.0.4 | 2.0.4 |
| NVD | webpack.js | loader-utilscpe:2.3:a:webpack.js:loader-utils:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.2.1 | 3.2.1 |
| OSV | npm | loader-utils | >= 1.0.0, < 1.4.2 | 1.4.2 |
| OSV | npm | loader-utils | >= 2.0.0, < 2.0.4 | 2.0.4 |
| OSV | npm | loader-utils | >= 3.0.0, < 3.2.1 | 3.2.1 |
References
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38 · Third Party Advisory, WEB
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L83 · Third Party Advisory, WEB
- https://github.com/webpack/loader-utils/issues/211 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/webpack/loader-utils/issues/216 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-37599 · ADVISORY
- https://github.com/webpack/loader-utils/commit/17cbf8fa8989c1cb45bdd2997aa524729475f1fa · WEB
- https://github.com/webpack/loader-utils/commit/ac09944dfacd7c4497ef692894b09e63e09a5eeb · WEB
- https://github.com/webpack/loader-utils/commit/d2d752d59629daee38f34b24307221349c490eb1 · WEB
- https://github.com/webpack/loader-utils · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 11 Oct 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Oct 2022)