VDB

CVE-2021-23362

CVE-2021-23362 PUBLISHED CVSS 5.3 MEDIUM

Regular Expression Denial of Service (ReDoS)

Reported by snyk · Published March 23, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nodedhi.docker.com12.22.2
hosted-git-infonpmjs3.0.8, 2.8.9
alpine/nodejs-22alpine12.22.2

Risk scores

CVSS 3.1
5.3
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

Affected products

VendorProductVersions
n/ahosted-git-infounspecified
archnodejs0
npmhosted-git-info2.0.0, 3.0.0
n/ahosted-git-info*
npmhosted-git-info

Timeline

  • Mar 23, 2021 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Jun 28, 2021 PoC Published (85 in total, the first dated here)
  • Mar 7, 2026 Distribution Patch (12 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (24 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Aug 25, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-23362
vulnetix vdb fixes CVE-2021-23362

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23362/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›