CVE-2021-23362: Regular Expression Denial of Service (ReDoS)
Vulnerability summary
CVE-2021-23362 is a medium (CVSS 5.3) vulnerability in npmjs hosted-git-info. EPSS estimates a 3.61% chance of exploitation in the next 30 days, higher than 89.5% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 23 · Related 16Timeline
- 23-03-2021PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
3.61%
Chance of exploitation in the next 30 days
Percentile
90%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.61% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundExploit Reference (snyk.io)
Maturity: unknown
Exploit Reference (snyk.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- node-hosted-git-info< 3.0.8-1
Npm1 product
- hosted-git-info< 2.8.9 | ≥ 3.0.0, < 3.0.8
Npmjs1 product
- hosted-git-info≥ 2.0.0, < 2.8.9 | ≥ 3.0.0, < 3.0.8
Siemens1 product
Ubuntu1 product
- node-hosted-git-info< 2.5.0-1ubuntu0.1~esm1 | < 2.8.5-1ubuntu0.1~esm1
5 vendors · 5 products
References
14 links- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356X Refsource MISCREPORTWEBExploitPatchThird Party Advisory
- github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3X Refsource MISCREPORTWEBPatchThird Party Advisory
- github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7X Refsource MISCWEBPatchThird Party Advisory
- github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01X Refsource MISCWEBPatchThird Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfX Refsource CONFIRMWEBPatchThird Party Advisory