{"id":"UBUNTU-CVE-2021-23362","details":"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.","modified":"2026-01-30T00:49:05.192326Z","published":"2021-03-23T17:15:00Z","related":["USN-5216-1"],"upstream":["CVE-2021-23362"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23362"},{"type":"REPORT","url":"https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356"},{"type":"REPORT","url":"https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5216-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23362"}],"affected":[{"package":{"name":"node-hosted-git-info","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/node-hosted-git-info@2.5.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0-1ubuntu0.1~esm1"}]}],"versions":["2.1.5-1","2.5.0-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"node-hosted-git-info","binary_version":"2.5.0-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23362.json"}},{"package":{"name":"node-hosted-git-info","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/node-hosted-git-info@2.8.5-1ubuntu0.1~esm1?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.5-1ubuntu0.1~esm1"}]}],"versions":["2.7.1-1","2.8.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-hosted-git-info","binary_version":"2.8.5-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23362.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}