Description
is.js is a general-purpose check library. Versions 0.9.0 and prior contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). is.js uses a regex copy-pasted from a gist to validate URLs. Trying to validate a malicious string can cause the regex to loop “forever.
Recommendation
No fix is available yet. Followings are affected versions:
- <= 0.9.0
References
Related Issues
- useragent Regular Expression Denial of Service vulnerability - CVE-2020-26311
- Regular Expression Denial of Service in ua-parser-js - CVE-2020-7733
- Regular Expression Denial of Service in dat.gui - CVE-2020-7755
- ua-parser-js Regular Expression Denial of Service vulnerability - CVE-2020-7793
- Tags:
- npm
- is_js
Anything's wrong? Let us know Last updated on July 06, 2023