{"api_version":"1","generated_at":"2026-04-22T22:49:57+00:00","cve":"CVE-2021-23362","urls":{"html":"https://cve.report/CVE-2021-23362","api":"https://cve.report/api/cve/CVE-2021-23362.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23362","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23362"},"summary":{"title":"CVE-2021-23362","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2021-03-23 17:15:00","updated_at":"2023-08-08 14:22:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355","name":"https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355","refsource":"MISC","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in hosted-git-info | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7","name":"https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7","refsource":"MISC","tags":[],"title":"fix: backport regex fix from #76 · npm/hosted-git-info@29adfe5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01","name":"https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01","refsource":"MISC","tags":[],"title":"chore(release): 2.8.9 · npm/hosted-git-info@8d4b369 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/npm/hosted-git-info/commits/v2","name":"https://github.com/npm/hosted-git-info/commits/v2","refsource":"MISC","tags":[],"title":"Commits · npm/hosted-git-info · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356","refsource":"MISC","tags":[],"title":"Regular Expression Denial of Service (ReDoS) in org.webjars.npm:hosted-git-info | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","name":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","refsource":"CONFIRM","tags":[],"title":"","mime":"application/pdf","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3","name":"https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3","refsource":"MISC","tags":[],"title":"fix: simplify the regular expression for shortcut matching · npm/hosted-git-info@bede0dc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23362","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23362","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Yeting Li","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"23362","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"npmjs","cpe5":"hosted-git-info","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23362","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"siemens","cpe5":"sinec_infrastructure_network_services","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23362","qid":"159345","title":"Oracle Enterprise Linux Security Update for nodejs:12 (ELSA-2021-3073)"},{"cve":"CVE-2021-23362","qid":"159346","title":"Oracle Enterprise Linux Security Update for nodejs:14 (ELSA-2021-3074)"},{"cve":"CVE-2021-23362","qid":"180251","title":"Debian Security Update for node-hosted-git-info (CVE-2021-23362)"},{"cve":"CVE-2021-23362","qid":"239531","title":"Red Hat Update for rh-nodejs14-nodejs and rh-nodejs14-nodejs-nodemon (RHSA-2021:2932)"},{"cve":"CVE-2021-23362","qid":"239532","title":"Red Hat Update for rh-nodejs12-nodejs and rh-nodejs12-nodejs-nodemon (RHSA-2021:2931)"},{"cve":"CVE-2021-23362","qid":"239547","title":"Red Hat Update for nodejs:14 (RHSA-2021:3074)"},{"cve":"CVE-2021-23362","qid":"239548","title":"Red Hat Update for nodejs:12 (RHSA-2021:3073)"},{"cve":"CVE-2021-23362","qid":"239654","title":"Red Hat Update for nodejs:12 (RHSA-2021:3639)"},{"cve":"CVE-2021-23362","qid":"239655","title":"Red Hat Update for nodejs:12 (RHSA-2021:3638)"},{"cve":"CVE-2021-23362","qid":"375692","title":"Node.js Denial Of Service and PATH,DLL hijacking Vulnerabilities July 2021"},{"cve":"CVE-2021-23362","qid":"377329","title":"Alibaba Cloud Linux Security Update for nodejs:14 (ALINUX3-SA-2021:0056)"},{"cve":"CVE-2021-23362","qid":"690034","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for node.js (c174118e-1b11-11ec-9d9d-0022489ad614)"},{"cve":"CVE-2021-23362","qid":"750833","title":"OpenSUSE Security Update for nodejs12 (openSUSE-SU-2021:2327-1)"},{"cve":"CVE-2021-23362","qid":"750837","title":"SUSE Enterprise Linux Security Update for nodejs10 (SUSE-SU-2021:2353-1)"},{"cve":"CVE-2021-23362","qid":"750840","title":"OpenSUSE Security Update for nodejs10 (openSUSE-SU-2021:2353-1)"},{"cve":"CVE-2021-23362","qid":"750841","title":"OpenSUSE Security Update for nodejs14 (openSUSE-SU-2021:2354-1)"},{"cve":"CVE-2021-23362","qid":"750857","title":"OpenSUSE Security Update for nodejs14 (openSUSE-SU-2021:1060-1)"},{"cve":"CVE-2021-23362","qid":"750858","title":"OpenSUSE Security Update for nodejs10 (openSUSE-SU-2021:1061-1)"},{"cve":"CVE-2021-23362","qid":"750859","title":"OpenSUSE Security Update for nodejs12 (openSUSE-SU-2021:1059-1)"},{"cve":"CVE-2021-23362","qid":"750922","title":"SUSE Enterprise Linux Security Update for nodejs8 (SUSE-SU-2021:2620-1)"},{"cve":"CVE-2021-23362","qid":"750928","title":"OpenSUSE Security Update for nodejs8 (openSUSE-SU-2021:2618-1)"},{"cve":"CVE-2021-23362","qid":"750939","title":"OpenSUSE Security Update for nodejs8 (openSUSE-SU-2021:1113-1)"},{"cve":"CVE-2021-23362","qid":"940245","title":"AlmaLinux Security Update for nodejs:14 (ALSA-2021:3074)"},{"cve":"CVE-2021-23362","qid":"940398","title":"AlmaLinux Security Update for nodejs:12 (ALSA-2021:3073)"},{"cve":"CVE-2021-23362","qid":"960063","title":"Rocky Linux Security Update for nodejs:14 (RLSA-2021:3074)"},{"cve":"CVE-2021-23362","qid":"960082","title":"Rocky Linux Security Update for nodejs:12 (RLSA-2021:3073)"},{"cve":"CVE-2021-23362","qid":"982337","title":"Nodejs (npm) Security Update for hosted-git-info (GHSA-43f8-2h32-f4cj)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2021-03-23T16:17:02.260029Z","ID":"CVE-2021-23362","STATE":"PUBLIC","TITLE":"Regular Expression Denial of Service (ReDoS)"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"hosted-git-info","version":{"version_data":[{"version_affected":"<","version_value":"3.0.8"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Regular Expression Denial of Service (ReDoS)"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355","name":"https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355"},{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356","name":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356"},{"refsource":"MISC","url":"https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3","name":"https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3"},{"refsource":"MISC","name":"https://github.com/npm/hosted-git-info/commits/v2","url":"https://github.com/npm/hosted-git-info/commits/v2"},{"refsource":"MISC","name":"https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7","url":"https://github.com/npm/hosted-git-info/commit/29adfe5ef789784c861b2cdeb15051ec2ba651a7"},{"refsource":"MISC","name":"https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01","url":"https://github.com/npm/hosted-git-info/commit/8d4b3697d79bcd89cdb36d1db165e3696c783a01"},{"refsource":"CONFIRM","name":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Yeting Li"}]},"nvd":{"publishedDate":"2021-03-23 17:15:00","lastModifiedDate":"2023-08-08 14:22:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM"},"exploitabilityScore":3.9,"impactScore":1.4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.8.9","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:npmjs:hosted-git-info:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.0.8","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.1.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23362","Ordinal":"198089","Title":"CVE-2021-23362","CVE":"CVE-2021-23362","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23362","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"23362","Ordinal":"2","NoteData":"2021-03-23","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"23362","Ordinal":"3","NoteData":"2021-06-07","Type":"Other","Title":"Modified"}]}}}