Advisory

GHSA-43f8-2h32-f4cj

Also known as: CVE-2021-23362

Summary

Regular Expression Denial of Service in hosted-git-info

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-05-06 16:10 UTC
Modified
2025-01-14 08:57 UTC

Affected packages and fixes

hosted-git-info

npm · All systems

Affected

  • introduced 0, fixed 2.8.9 (semver)

Fixed versions

2.8.9

Fix

hosted-git-info

npm · All systems

Affected

  • introduced 3.0.0, fixed 3.0.8 (semver)

Fixed versions

3.0.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences