GHSA-hhq3-ff78-jv3g

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

At a glance

Published
Updated
CVE
CVE-2022-37599
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Description

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.

Affected packages

PackageVersions
npm · loader-utilsintroduced 1.0.0, fixed 1.4.2
npm · loader-utilsintroduced 2.0.0, fixed 2.0.4
npm · loader-utilsintroduced 3.0.0, fixed 3.2.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database