CVE-2021-23354
Dashboard / Vulnerabilities / CVE-2021-23354
CVE-2021-23354
Published: 12 Mar 2021Last Modified: 9 Jul 2026
Summary:
Details: The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%bscdeEfFgGioOuxX])/g in lib/printf.js. The vulnerable regular expression has cubic worst-case time complexity.
References: https://snyk.io/vuln/SNYK-JS-PRINTF-1072096, https://github.com/adaltas/node-printf/issues/31, https://github.com/adaltas/node-printf/pull/32
Affected packages
Package
Name:
Purl:
Affected ranges
Affected versions
v0.6.0
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
