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
- ua-parser-js Regular Expression Denial of Service vulnerability - CVE-2020-7793
- Showdown vulnerable to Regular Expression Denial of Service (ReDoS) in link/anchor parsing - CVE-2024-1899
- angular vulnerable to regular expression denial of service (ReDoS) - CVE-2022-25844
- steal vulnerable to Regular Expression Denial of Service via source and sourceWithComments - CVE-2022-37262
You might also like:
- Tags:
- npm
- is_js
Anything's wrong? Let us know Last updated on July 06, 2023


