Description
A Regular Expression Denial of Service vulnerability was discovered in esm before 3.1.0. The issue is that esm’s find-indexes is using the unescaped identifiers in a regex, which, in this case, causes an infinite loop.
Recommendation
Update the esm package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.1.0
- Patched version(s): 3.1.0
References
Related Issues
- Regular Expression Denial of Service in marked (GHSA-ch52-vgq2-943f) - Vulnerability
- Regular Expression Denial of Service (GHSA-6394-6h9h-cfjg) - Vulnerability
- Regular Expression Denial of Service in highcharts (GHSA-xmc8-cjfr-phx3) - CVE-2018-20801
- html-parse-stringify and html-parse-stringify2 vulnerable to Regular expression denial of service (ReDoS) (GHSA-545q-3fg6-48m7) - CVE-2021-23346
- Tags:
- npm
- esm
Anything's wrong? Let us know Last updated on January 09, 2023