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.
CVE-2021-23362
This medium-severity CVE scores 5.3 under NVD CVSS v3. EPSS exploit probability: 0.6%, top 32% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.3
- EG Score
- 5.3(medium)
- EPSS
- 88.1%
- KEV
- Not listed
Published
March 23, 2021
Last Modified
November 21, 2024
References (14)
- report@snykhttps://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- report@snykhttps://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7
- report@snykhttps://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01
- report@snykhttps://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
- report@snykhttps://github.com/npm/hosted-git-info/commits/v2
- report@snykhttps://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
- report@snykhttps://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
- af854a3a-2127-422b-91ae-364da2661108https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7
- af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01
- af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
- af854a3a-2127-422b-91ae-364da2661108https://github.com/npm/hosted-git-info/commits/v2
- af854a3a-2127-422b-91ae-364da2661108https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
- af854a3a-2127-422b-91ae-364da2661108https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
Vendor Advisories for CVE-2021-23362(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2021:2932Red Hat Product SecurityMedium
Red Hat Security Advisory: rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon security update
- RHSA-2021:2931Red Hat Product SecurityMedium
Red Hat Security Advisory: rh-nodejs12-nodejs and rh-nodejs12-nodejs-nodemon security update
- RHSA-2021:2438Red Hat Product SecurityMedium
Red Hat Security Advisory: OpenShift Container Platform 4.8.2 bug fix and security update
Patch Availability(8)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | node-hosted-git-info (2.5.0-1ubuntu0.1~esm1) @ bionic | 2026-05-26 | ubuntu |
| redhat | nodejs:12-8020020210817125332.4cda2c84 | 2021-09-22 | redhat |
| redhat | nodejs:12-8010020210817113128.c27ad7f8 | 2021-09-22 | redhat |
| redhat | nodejs:12-8040020210708131418.522a0ee4 | 2021-08-10 | redhat |
| redhat | nodejs:14-8040020210708154809.522a0ee4 | 2021-08-10 | redhat |
| redhat | rh-nodejs14-nodejs-nodemon-0:2.0.3-2.el7 | 2021-07-28 | redhat |
| redhat | rh-nodejs12-nodejs-nodemon-0:2.0.3-2.el7 | 2021-07-28 | redhat |
| redhat | openshift4/ose-console:v4.8.0-202107010336.p0.git.188a490.assembly.stream | 2021-07-27 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| hosted-git-info | — | 3.0.8 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(5)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2021:3073MODERATE2021-03-23
RHSA-2021:3073 — Moderate
- Red HatRHSA-2021:3074MODERATE2021-03-23
RHSA-2021:3074 — Moderate
- Red HatRHSA-2021:3638MODERATE2021-03-23
RHSA-2021:3638 — Moderate
- Red HatRHSA-2021:3639MODERATE2021-03-23
RHSA-2021:3639 — Moderate
- UbuntuUSN-5216-1MEDIUM
hosted-git-info vulnerability
Data Freshness Timeline
(refreshed 9× in last 7d / 45× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:57 UTCEPSS rescore
- 2026-07-01 15:03 UTCEPSS rescore
- 2026-07-01 06:48 UTCOSV refresh
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
Show 56 moreShow fewer
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 11:13 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 19:30 UTCEG score recompute
- 2026-05-26 19:30 UTCVendor advisory
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-24 16:49 UTCEPSS rescore
Frequently asked(5)
What is CVE-2021-23362?
When was CVE-2021-23362 disclosed?
Is CVE-2021-23362 actively exploited?
What is the CVSS score of CVE-2021-23362?
How do I remediate CVE-2021-23362?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2021-23362
Is Your Infrastructure Affected by CVE-2021-23362?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.