CVE-2021-23362
Regular Expression Denial of Service in hosted-git-info
5.3
MEDIUM
CVSS 3.1
EPSS 0.55%
Description
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.
How to fix CVE-2021-23362
To remediate CVE-2021-23362, upgrade the affected package to a fixed version below.
- —upgrade to 3.0.8-1 or later
- —upgrade to 2.8.9 or later
Is CVE-2021-23362 being exploited?
Low — EPSS is 0.6%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 3.0.8-1
- from 0, < 2.8.9
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |