What’s Vulnerable › Vulnerabilities

CVE-2021-23362: Regular Expression Denial of Service (ReDoS)

Description

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

How to fix

Upgrade to a fixed version: Npmjs Hosted-Git-Info 2.8.9, 3.0.8; Siemens Sinec Infrastructure Network Services 1.0.1.1; Npm Hosted-Git-Info 2.8.9, 3.0.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-23362 or the next vulnerability affects your stack