{"id":"GHSA-xfhp-gmh8-r8v2","revision":"7a8c27b0d54b401aa28cc8e389dbf2d3","records":[{"revision":"7a8c27b0d54b401aa28cc8e389dbf2d3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-xfhp-gmh8-r8v2","aliases":["CVE-2021-23354","SNYK-JS-PRINTF-1072096"],"title":"printf vulnerable to Regular Expression Denial of Service (ReDoS)","description":"The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string \n```regex\n/\\%(?:\\(([\\w_.]+)\\)|([1-9]\\d*)\\$)?([0 +\\-\\]*)(\\*|\\d+)?(\\.)?(\\*|\\d+)?[hlL]?([\\%bscdeEfFgGioOuxX])/g\n```\n in `lib/printf.js`. The vulnerable regular expression has cubic worst-case time complexity.","state":0,"publishedAt":"2021-03-19T21:22:10+00:00","modifiedAt":"2026-07-08T06:50:03.4334526+00:00","affected":[{"ecosystem":"npm","name":"printf","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.6.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-23354","https://github.com/adaltas/node-printf/issues/31","https://github.com/adaltas/node-printf/pull/32","https://github.com/adaltas/node-printf/commit/a8502e7c9b0b22555696a2d8ef67722086413a68","https://snyk.io/vuln/SNYK-JS-PRINTF-1072096"],"sourceUrl":"https://github.com/advisories/GHSA-xfhp-gmh8-r8v2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-xfhp-gmh8-r8v2","identifiers":["GHSA-xfhp-gmh8-r8v2","CVE-2021-23354","SNYK-JS-PRINTF-1072096"]},"retained":false,"historicalAffected":[]}],"coverage":[]}