CVE-2020-26302
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.87%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.87% probability · 57th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-400, CWE-1333
- Affected
- is.js project/is.js
- Source
- security-advisories@github.com
References
- https://github.com/arasatasaygin/is.js/issues/320Issue Tracking, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2020-295-redos-is.jsExploit, Third Party Advisory
- https://github.com/arasatasaygin/is.js/issues/320Issue Tracking, Third Party Advisory
- https://securitylab.github.com/advisories/GHSL-2020-295-redos-is.jsExploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.