~ / search / GHSA-43f8-2h32-f4cj

GHSA-43f8-2h32-f4cj

Regular Expression Denial of Service in hosted-git-info

Source: GitHub Advisory Database (reviewed) Moderate CVE-2021-23362

Packages

EcosystemPackageAffectedFixed in
npm hosted-git-info < 2.8.9 2.8.9
npm hosted-git-info >= 3.0.0, < 3.0.8 3.0.8

Details

As written in the advisory (Markdown source, shown as plain text).

The npm 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

References

External links from the advisory. They lead to third-party sites.