NetSight
medium5.3

CVE-2021-23362

Regular Expression Denial of Service in hosted-git-info

Impact

The npm package `hosted-git-info` before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular expression shortcutMatch in the fromUrl function in index.js. The affected regular expression exhibits polynomial worst-case time complexity

Affected packages

EcosystemPackageAffectedFixed in
npmhosted-git-info>= 3.0.0, < 3.0.83.0.8

Affected products

VendorProductAffected versions
NpmjsHosted-Git-Info
from 2.0.0 before 2.8.9
from 3.0.0 before 3.0.8
SiemensSinec Infrastructure Network Services
before 1.0.1.1

Weakness classification

References