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
{
"cwe_ids": [
"CWE-400"
],
"github_reviewed_at": "2021-03-24T21:06:22Z",
"nvd_published_at": "2021-03-23T17:15:00Z",
"github_reviewed": true,
"severity": "MODERATE"
}