CVE-2020-26302 is_js vulnerable to Regular Expression Denial of Service
HighCVSS 7.5
EPSS 0.92%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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." This vulnerability was found using a CodeQL query which identifies inefficient regular expressions. is.js has no patch for this issue.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| arasatasaygin is.js | >= 0.9.0, <= 0.9.0 | after 0.9.0 | Fixed |
| is.js project is.js | <= 0.9.0 | after 0.9.0 | Fixed |
| npm is_js(npm) | <= 0.9.0 | after 0.9.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm is_js(npm) | <= 0.9.0 | No fix listed |
| is.js project is.js | <= 0.9.0 | No fix listed |
| arasatasaygin is.js | >= 0.9.0, <= 0.9.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking third-party-advisory
- securitylab.github.com exploit third-party-advisory vendor-advisory
- github.com
- github.com product