Lucene search

K
githubGitHub Advisory DatabaseGHSA-PVRW-G6FX-MCX2
HistoryJul 06, 2023 - 7:24 p.m.

is_js vulnerable to Regular Expression Denial of Service

2023-07-0619:24:05
CWE-400
CWE-1333
GitHub Advisory Database
github.com
37
is.js
vulnerability
redos
regex
url validation
codeql
no patch

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

0.001 Low

EPSS

Percentile

36.4%

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 configurations

Vulners
Node
is_projecto2_projectis_projecto2Range0.9.0
CPENameOperatorVersion
is_jsle0.9.0

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

0.001 Low

EPSS

Percentile

36.4%

Related for GHSA-PVRW-G6FX-MCX2