Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hosted-git-info
  4. ›
  5. CVE-2021-23362

CVE-2021-23362: Uncontrolled Resource Consumption

March 23, 2021 (updated August 8, 2023)

The package hosted-git-info is 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-23362

Code Behaviors & Features

Detect and mitigate CVE-2021-23362 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.8.9, all versions starting from 3.0.0 before 3.0.8

Fixed versions

  • 2.8.9
  • 3.0.8

Solution

Upgrade to versions 2.8.9, 3.0.8 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/hosted-git-info/CVE-2021-23362.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.