{"cve":"CVE-2021-23362","nvd":{"published":"2021-03-23T17:15:14.027","modified":"2026-06-17T03:38:37.500","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-1333"],"references":["https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7","https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01","https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3","https://github.com/npm/hosted-git-info/commits/v2"],"products":["npmjs:hosted-git-info","siemens:sinec_infrastructure_network_services"],"source":"nvd","synced_at":"2026-10-19T21:15:50.279857260+00:00"},"epss":{"cve":"CVE-2021-23362","score":0.03612,"percentile":0.89488,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-43f8-2h32-f4cj","url":"https://osv.dev/vulnerability/GHSA-43f8-2h32-f4cj","summary":"Regular Expression Denial of Service in hosted-git-info","modified":"2025-01-14T08:57:25.609462Z","packages":[{"ecosystem":"npm","name":"hosted-git-info","purl":"pkg:npm/hosted-git-info","ranges":["<2.8.9"],"fixed":["2.8.9"]},{"ecosystem":"npm","name":"hosted-git-info","purl":"pkg:npm/hosted-git-info","ranges":[">=3.0.0 <3.0.8"],"fixed":["3.0.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}