CVE-2021-23362
Regular Expression Denial of Service (ReDoS)
Reported by snyk · Published March 23, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| node | dhi.docker.com | 12.22.2 |
| hosted-git-info | npmjs | 3.0.8, 2.8.9 |
| alpine/nodejs-22 | alpine | 12.22.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | hosted-git-info | unspecified |
| arch | nodejs | 0 |
| npm | hosted-git-info | 2.0.0, 3.0.0 |
| n/a | hosted-git-info | * |
| npm | hosted-git-info |
Timeline
- Mar 23, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 28, 2021 PoC Published (85 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 7, 2026 Security Advisory (24 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-23362
vulnetix vdb fixes CVE-2021-23362
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23362/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2021-23362 advisory