Ubuntu CVE Tracker
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:18.04:LTS | node-hosted-git-info | All versions before 2.5.0-1ubuntu0.1~esm1 (fixed in 2.5.0-1ubuntu0.1~esm1) |
| Ubuntu:Pro:20.04:LTS | node-hosted-git-info | All versions before 2.8.5-1ubuntu0.1~esm1 (fixed in 2.8.5-1ubuntu0.1~esm1) |
References
- https://ubuntu.com/security/CVE-2021-23362
- https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1088356
- https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355
- https://ubuntu.com/security/notices/USN-5216-1
- https://www.cve.org/CVERecord?id=CVE-2021-23362