GitHub Advisoryadvisory · npm
GHSA-3rfm-jhwj-7488 loader-utils is vulnerable to Regular Expression Denial of Service (ReDoS) via url variable
HIGH
Official page ↗
- Aliases
- CVE-2022-37603
- Ecosystem
- npm
- Packages
- loader-utils
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
- Reviewed
- 2022-11-15
Affected packages
• npm loader-utils: >= 1.0.0, < 1.4.2 → fixed in 1.4.2
• npm loader-utils: >= 2.0.0, < 2.0.4 → fixed in 2.0.4
• npm loader-utils: >= 3.0.0, < 3.2.1 → fixed in 3.2.1
Description
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.
Related
Alias · CVE (1)
- CVE-2022-37603 A Regular expression denial of service (ReDoS) flaw was found in Function interpolateName in interpolateName.js in webpack loader-utils… vulnerability
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-37603 advisory
- https://github.com/webpack/loader-utils/issues/213 web
- https://github.com/webpack/loader-utils/issues/216 web
- https://github.com/webpack/loader-utils/commit/17cbf8fa8989c1cb45bdd2997aa524729475f1fa web
- https://github.com/webpack/loader-utils/commit/ac09944dfacd7c4497ef692894b09e63e09a5eeb web
- https://github.com/webpack/loader-utils/commit/d2d752d59629daee38f34b24307221349c490eb1 web
- https://github.com/webpack/loader-utils package
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L107 web
- https://github.com/webpack/loader-utils/blob/d9f4e23cf411d8556f8bac2d3bf05a6e0103b568/lib/interpolateName.js#L38 web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ERN6YE3DS7NBW7UH44SCJBMNC2NWQ7SM web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KAC5KQ2SEWAMQ6UZAUBZ5KXKEOESH375 web
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VNV2GNZXOTEDAJRFH3ZYWRUBGIVL7BSU web