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
- jspdf vulnerable to Regular Expression Denial of Service (ReDoS) - CVE-2021-23353
- angular vulnerable to regular expression denial of service via the angular.copy() utility - CVE-2023-26116
- es5-ext vulnerable to Regular Expression Denial of Service in `function#copy` and `function#toStringTokens` - CVE-2024-27088
- angular vulnerable to regular expression denial of service via the $resource service - CVE-2023-26117
- Tags:
- npm
- is_js
Anything's wrong? Let us know Last updated on July 06, 2023