CVE-2022-37599
loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)
Also known as GHSA-hhq3-ff78-jv3g
Mitigation
- Upgrade loader-utils to one of 1.4.2, 2.0.4, 3.2.1 (or later in the same release line).
Who should check
- Projects that depend on npm package loader-utils (>= 1.0.0, < 1.4.2)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- loader-utils >= 1.0.0, < 1.4.2
- Fixed in
- 1.4.2, 2.0.4, 3.2.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 2.33% chance of exploitation in 30 days (percentile 84, 2026-11-26)
- CWE
- CWE-1333
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm loader-utils | >= 1.0.0, < 1.4.2 | 1.4.2, 2.0.4, 3.2.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-37599. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-37599.md Affected: loader-utils >= 1.0.0, < 1.4.2 Fixed in: 1.4.2, 2.0.4, 3.2.1 Steps: 1. Search this machine and project for loader-utils (npm), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2/
- https://nvd.nist.gov/vuln/detail/CVE-2022-37599
Patches
- https://github.com/webpack/loader-utils/issues/216
- https://github.com/webpack/loader-utils/commit/17cbf8fa8989c1cb45bdd2997aa524729475f1fa
- https://github.com/webpack/loader-utils/commit/ac09944dfacd7c4497ef692894b09e63e09a5eeb
- https://github.com/webpack/loader-utils/commit/d2d752d59629daee38f34b24307221349c490eb1
Other
- 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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ/
- https://github.com/webpack/loader-utils
- 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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ
FAQ
Is CVE-2022-37599 being exploited?
There is no confirmed exploitation: CVE-2022-37599 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.33% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-37599?
High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2022-37599?
loader-utils >= 1.0.0, < 1.4.2.
Is there a fix for CVE-2022-37599?
Yes. Fixed in 1.4.2, 2.0.4, 3.2.1. Upgrade loader-utils to one of 1.4.2, 2.0.4, 3.2.1 (or later in the same release line).
How do I check if I'm affected by CVE-2022-37599?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.