HighGHSA-hhq3-ff78-jv3gCVE-2022-37599

loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS)

Published 12 Oct 2022 · Updated 4 Nov 2025

Affected packages

Affected
>=1.0.0 <1.4.2
Fixed in
1.4.2
Update to the fixed version for your release line, for example:npm install loader-utils@1.4.2
Affected
>=2.0.0 <2.0.4
Fixed in
2.0.4
Update to the fixed version for your release line, for example:npm install loader-utils@2.0.4
Affected
>=3.0.0 <3.2.1
Fixed in
3.2.1
Update to the fixed version for your release line, for example:npm install loader-utils@3.2.1

Details

A regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils via the resourcePath variable in interpolateName.js. A badly or maliciously formed string could be used to send crafted requests that cause a system to crash or take a disproportional amount of time to process. This issue has been patched in versions 1.4.2, 2.0.4 and 3.2.1.

Is GHSA-hhq3-ff78-jv3g in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected loader-utils, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.