Description
Affected versions of acorn are vulnerable to Regular Expression Denial of Service. A regex in the form of /[x-\ud800]/u causes the parser to enter an infinite loop. The string is not valid UTF16 which usually results in it being sanitized before reaching the parser.
Recommendation
Update the acorn package to the latest compatible version. Followings are version details:
Affected version(s): **>= 5.5.0, < 5.7.4 >= 7.0.0, < 7.1.1 >= 6.0.0, < 6.4.1** Patched version(s): **5.7.4 7.1.1 6.4.1**
References
Related Issues
- ua-parser-js Regular Expression Denial of Service vulnerability - CVE-2020-7793
- Foundation Regular Expression Denial of Service vulnerability - CVE-2020-26304
- Knwl.js Regular Expression Denial of Service vulnerability - CVE-2020-26306
- Regular Expression Denial of Service in marked - marked - GHSA-ch52-vgq2-943f - Vulnerability
You might also like:
- Tags:
- npm
- acorn
Anything's wrong? Let us know Last updated on January 09, 2023


