GHSA-43f8-2h32-f4cj

Suggest an improvement
Source
https://github.com/advisories/GHSA-43f8-2h32-f4cj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-43f8-2h32-f4cj/GHSA-43f8-2h32-f4cj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-43f8-2h32-f4cj
Aliases
Published
2021-05-06T16:10:39Z
Modified
2025-01-14T08:57:25Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Regular Expression Denial of Service in hosted-git-info
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

Database specific
{
    "cwe_ids":  [
        "CWE-400"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-03-24T21:06:22Z",
    "nvd_published_at":  "2021-03-23T17:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / hosted-git-info

Package

Name
hosted-git-info
View open source insights on deps.dev
Purl
pkg:npm/hosted-git-info

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.8.9

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-43f8-2h32-f4cj/GHSA-43f8-2h32-f4cj.json"

npm / hosted-git-info

Package

Name
hosted-git-info
View open source insights on deps.dev
Purl
pkg:npm/hosted-git-info

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.0.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-43f8-2h32-f4cj/GHSA-43f8-2h32-f4cj.json"