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.
| Package (Ecosystem) | Introduced | Fixed | Limit |
|---|---|---|---|
| hosted-git-info(npm) | 0 | 2.8.9 | N/A |
| hosted-git-info(npm) | 3.0.0 | 3.0.8 | N/A |
CVSS Metrics