loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable
Published 14 Oct 2022 · Updated 8 Nov 2023
Is your project on an affected loader-utils?
Affected packages
- Affected
- >=1.0.0 <1.4.2
- Fixed in
- 1.4.2
npm install loader-utils@1.4.2- Affected
- >=2.0.0 <2.0.4
- Fixed in
- 2.0.4
npm install loader-utils@2.0.4- Affected
- >=3.0.0 <3.2.1
- Fixed in
- 3.2.1
npm install loader-utils@3.2.1Details
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 url 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.
Is GHSA-3rfm-jhwj-7488 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected loader-utils, and gives you the command that fixes it.
More advisories for loader-utils
- CriticalCVE-2022-37601Prototype pollution in webpack loader-utils · 13 Oct 2022
- HighCVE-2022-37599loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) · 12 Oct 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-37603
- Linkgithub.com/webpack/loader-utils/issues/213
- Linkgithub.com/webpack/loader-utils/issues/216
- Linkgithub.com/webpack/loader-utils/commit/17cbf8fa8989c1cb45bdd2997aa524729475f1fa
- Linkgithub.com/webpack/loader-utils/commit/ac09944dfacd7c4497ef692894b09e63e09a5eeb
- Linkgithub.com/webpack/loader-utils/commit/d2d752d59629daee38f34b24307221349c490eb1
- Packagegithub.com/webpack/loader-utils
- Linkgithub.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L107
- Linkgithub.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ERN6YE3DS7NBW7UH44SCJBMNC2NWQ7SM
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KAC5KQ2SEWAMQ6UZAUBZ5KXKEOESH375
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VNV2GNZXOTEDAJRFH3ZYWRUBGIVL7BSU
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.