Advisory

GHSA-hhq3-ff78-jv3g

Also known as: CVE-2022-37599

Summary

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

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-10-12 12:00 UTC
Modified
2025-11-04 22:07 UTC

Affected packages and fixes

loader-utils

npm · All systems

Affected

  • introduced 1.0.0, fixed 1.4.2 (semver)

Fixed versions

1.4.2

Fix

loader-utils

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.0.4 (semver)

Fixed versions

2.0.4

Fix

loader-utils

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.2.1 (semver)

Fixed versions

3.2.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences