High, CVSS 7.5npmAmendedPublished
printf vulnerable to Regular Expression Denial of Service (ReDoS)
CVE-2021-23354 · GHSA-xfhp-gmh8-r8v2
- Affected
- npm printf < 0.6.1
- Fixed in
- 0.6.1· Vendor fix available
- Issue
- The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string in lib/printf.js. The vulnerable regular expression has cubic worst-case time complexity.
Recommended action: Upgrade to 0.6.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.