Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. loader-utils
  4. ›
  5. CVE-2022-37599

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

October 12, 2022 (updated November 4, 2025)

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.

References

  • github.com/advisories/GHSA-hhq3-ff78-jv3g
  • github.com/webpack/loader-utils
  • github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js
  • github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js
  • github.com/webpack/loader-utils/commit/17cbf8fa8989c1cb45bdd2997aa524729475f1fa
  • github.com/webpack/loader-utils/commit/ac09944dfacd7c4497ef692894b09e63e09a5eeb
  • github.com/webpack/loader-utils/commit/d2d752d59629daee38f34b24307221349c490eb1
  • github.com/webpack/loader-utils/issues/211
  • github.com/webpack/loader-utils/issues/216
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3HUE6ZR5SL73KHL7XUPAOEL6SB7HUDT2
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6PVVPNSAGSDS63HQ74PJ7MZ3MU5IYNVZ
  • nvd.nist.gov/vuln/detail/CVE-2022-37599

Code Behaviors & Features

Detect and mitigate CVE-2022-37599 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.0 before 1.4.2, all versions starting from 2.0.0 before 2.0.4, all versions starting from 3.0.0 before 3.2.1

Fixed versions

  • 1.4.2
  • 2.0.4
  • 3.2.1

Solution

Upgrade to versions 1.4.2, 2.0.4, 3.2.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/loader-utils/CVE-2022-37599.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:37 +0000.