{"id":"CVE-2021-23354","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.","aliases":["GHSA-xfhp-gmh8-r8v2"],"modified":"2026-04-10T04:30:23.841435Z","published":"2021-03-12T15:15:14.207Z","related":["SNYK-JS-PRINTF-1072096"],"references":[{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JS-PRINTF-1072096"},{"type":"REPORT","url":"https://github.com/adaltas/node-printf/issues/31"},{"type":"FIX","url":"https://github.com/adaltas/node-printf/pull/32"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/adaltas/node-printf","events":[{"introduced":"0"},{"fixed":"5d11e642922fe1a125a141d4becfee00f29c67ce"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.6.1"}]}}],"versions":["0.2.1","v0.0.1","v0.0.2","v0.0.3","v0.0.4","v0.0.6","v0.0.7","v0.1.0","v0.1.1","v0.1.2","v0.1.3","v0.2.0","v0.2.2","v0.2.3","v0.2.4","v0.2.5","v0.3.0","v0.4.0","v0.5.1","v0.5.2","v0.5.3","v0.6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23354.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}