{"cve":"CVE-2021-23354","nvd":{"published":"2021-03-12T15:15:14.207","modified":"2026-06-17T03:38:36.587","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-1333"],"references":["https://github.com/adaltas/node-printf/issues/31","https://github.com/adaltas/node-printf/pull/32","https://snyk.io/vuln/SNYK-JS-PRINTF-1072096","https://github.com/adaltas/node-printf/issues/31","https://github.com/adaltas/node-printf/pull/32"],"products":["adaltas:printf"],"source":"nvd","synced_at":"2026-10-19T21:15:50.279857260+00:00"},"epss":{"cve":"CVE-2021-23354","score":0.02176,"percentile":0.82328,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-xfhp-gmh8-r8v2","url":"https://osv.dev/vulnerability/GHSA-xfhp-gmh8-r8v2","summary":"printf vulnerable to Regular Expression Denial of Service (ReDoS)","modified":"2026-07-08T06:50:03.433452551Z","packages":[{"ecosystem":"npm","name":"printf","purl":"pkg:npm/printf","ranges":["<0.6.1"],"fixed":["0.6.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}