Live threats

All CVEs / Npmjs

CVE-2021-23362Npmjs Hosted-git-info

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hosted-git-info.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
npmjshosted-git-info≥ 2.0.0 < 2.8.9
npmjshosted-git-info≥ 3.0.0 < 3.0.8
siemenssinec_infrastructure_network_services< 1.0.1.1

Official sources

References

Links published by the sources. Open them with care.