5.3
Medium
CVE-2021-23362 The package hosted-git-info before 3.0.8 are vulnerable to Regular Expression Denial of Service (ReDoS) via regular…
Description
The 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 products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| hosted-git-info 3.0 | earliest → < 3.0.8 | 3.0.8 |