Vulnerability in Npmjs Hosted-Git-Info
CVE-2021-23362
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.036, 89.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Npmjs Hosted-Git-Info
- Siemens Sinec Infrastructure Network Services
- Hosted-Git-Info — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (engn33r/awesome-redos-security, marcosrg9/YouTubeTV, retr0-13/auditjs, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355 (Exploit, Patch, Third Party Advisory)
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356 (Exploit, Patch, Third Party Advisory)
- github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3 (Patch, Third Party Advisory)
- github.com/npm/hosted-git-info/commits/v2 (Patch, Third Party Advisory)
- github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7 (Patch, Third Party Advisory)
- github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01 (Patch, Third Party Advisory)
- cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf (Patch, Third Party Advisory)