logo

CVE-2020-26302 is_js

Package

Manager: npm
Name: is_js
Vulnerable Version: >=0 <=0.9.0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00151 pctl0.36233

Details

is_js vulnerable to Regular Expression Denial of Service 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.

Metadata

Created: 2023-07-06T19:24:05Z
Modified: 2023-07-06T21:46:34Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-pvrw-g6fx-mcx2/GHSA-pvrw-g6fx-mcx2.json
CWE IDs: ["CWE-1333", "CWE-400"]
Alternative ID: GHSA-pvrw-g6fx-mcx2
Finding: F211
Auto approve: 1