CVE-2021-23362

NameCVE-2021-23362
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-hosted-git-info (PTS)bullseye3.0.8-1fixed
sid, trixie, bookworm6.1.1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-hosted-git-infosourcestretch(not affected)
node-hosted-git-infosourcebuster2.7.1-1+deb10u1
node-hosted-git-infosource(unstable)3.0.8-1

Notes

[stretch] - node-hosted-git-info <not-affected> (Vulnerable code introduced later)
Fixed by: https://github.com/npm/hosted-git-info/commit/bede0dc38e1785e732bf0a48ba6f81a4a908eba3
https://snyk.io/vuln/SNYK-JS-HOSTEDGITINFO-1088355

Search for package or bug name: Reporting problems