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
Could your website be exposed too?
SmartScanner can check your website for Regular Expression Denial of Service in Acorn and gives you actionable findings to investigate.
Start a free scanRelated 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


