CVE-2021-23362 – hosted-git-info
Package
Manager: npm
Name: hosted-git-info
Vulnerable Version: >=0 <2.8.9 || >=3.0.0 <3.0.8
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00554 pctl0.6711
Details
Regular Expression Denial of Service in hosted-git-info 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
Metadata
Created: 2021-05-06T16:10:39Z
Modified: 2022-03-18T20:25:44Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-43f8-2h32-f4cj/GHSA-43f8-2h32-f4cj.json
CWE IDs: ["CWE-400"]
Alternative ID: GHSA-43f8-2h32-f4cj
Finding: F002
Auto approve: 1