CVE-2021-23362Npmjs Hosted-git-info
Medium 5.3 No auth needed
Follow: this CVE · Npmjs · Npmjs Hosted-git-info We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 3.6% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Mar 23, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Hosted-git-info.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | hosted-git-info |
< 2.8.9 |
2.8.9 |
npm install hosted-git-info@2.8.9 |
| npm | hosted-git-info |
≥ 3.0.0 < 3.0.8 |
3.0.8 |
npm install hosted-git-info@3.0.8 |
Per OSV / GitHub Advisories (GHSA-43f8-2h32-f4cj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| npmjs | hosted-git-info | ≥ 2.0.0 < 2.8.9 |
| npmjs | hosted-git-info | ≥ 3.0.0 < 3.0.8 |
| siemens | sinec_infrastructure_network_services | < 1.0.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- cert-portal.siemens.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory