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