GHSA-43f8-2h32-f4cj

Regular Expression Denial of Service in hosted-git-info

At a glance

Published
Updated
CVE
CVE-2021-23362
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Description

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

Affected packages

PackageVersions
npm · hosted-git-infointroduced 0, fixed 2.8.9
npm · hosted-git-infointroduced 3.0.0, fixed 3.0.8

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database