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

High 7.5 Published Updated

A ReDoS flaw in webpack loader-utils allows attackers to cause denial of service via crafted resource paths.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-37599?

CVE-2022-37599 is a high-severity denial of service vulnerability in n/a, published on 11 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-1333

Which versions are affected by CVE-2022-37599?

6 open source packages ship an affected version, including loader-utils. It affects 1 product.

PackageAffectedFixed in
loader-utils npmFrom 1.0.01.4.2
loader-utils npmFrom 1.0.01.4.2
loader-utils npmFrom 2.0.02.0.4
loader-utils npmFrom 2.0.02.0.4
loader-utils npmFrom 3.0.03.2.1
loader-utils npmFrom 3.0.03.2.1

Products include Webpack.js Loader-Utils.

How do I fix CVE-2022-37599?

Upgrade loader-utils to a fixed version for your release line: 1.4.2, 2.0.4 or 3.2.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-37599 being exploited?

There is no known exploitation of CVE-2022-37599 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-37599, GHSA-hhq3-ff78-jv3g, ROOT-APP-NPM-CVE-2022-37599, UBUNTU-CVE-2022-37599.

Is CVE-2022-37599 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free