ADVISORIES

GitHub Advisory Database

GHSA-43f8-2h32-f4cj

Regular Expression Denial of Service in hosted-git-info

Moderate CVE-2021-23362

Details

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

EcosystemPackageAffected versions
npmhosted-git-info
All versions before 2.8.9 (fixed in 2.8.9)
npmhosted-git-info
From 3.0.0 before 3.0.8 (fixed in 3.0.8)

References