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).

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 39.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmis_jsno fix listedGHSA-pvrw-g6fx-mcx2

Affected products (as reported)

VendorProductVersions
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

References