VDB
Sign up
HIGH7.5

GHSA-hhq3-ff78-jv3g

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

Quick fix

GHSA-hhq3-ff78-jv3g — loader-utils: upgrade to the fixed version with the command below.

npm install loader-utils@1.4.2

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/loader-utils
Introduced in: 1.0.0Fixed in: 1.4.2
Fixnpm install loader-utils@1.4.2
npm/loader-utils
Introduced in: 2.0.0Fixed in: 2.0.4
Fixnpm install loader-utils@2.0.4
npm/loader-utils
Introduced in: 3.0.0Fixed in: 3.2.1
Fixnpm install loader-utils@3.2.1

References