Vulnerability · Published Dec 23, 2022 · Assigned by GitHub_M
CVE-2020-26302
High 7.5
In plain English
A high-severity uncontrolled resource consumption in is.js from arasatasaygin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | is_js | no fix listed | GHSA-pvrw-g6fx-mcx2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| arasatasaygin | is.js | 0.9.0 – through 0.9.0 |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H