GHSA-43f8-2h32-f4cj

Suggest an improvement
Source
https://github.com/advisories/GHSA-43f8-2h32-f4cj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-43f8-2h32-f4cj/GHSA-43f8-2h32-f4cj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-43f8-2h32-f4cj
Aliases
  • CVE-2021-23362
  • SNYK-JAVA-ORGWEBJARSNPM-1088356
  • SNYK-JS-HOSTEDGITINFO-1088355
Published
2021-05-06T16:10:39Z
Modified
2023-11-01T05:44:42.878315Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
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

References

Affected packages

npm / hosted-git-info

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.8.9

npm / hosted-git-info

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.0.8