{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.6.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5d11e642922fe1a125a141d4becfee00f29c67ce"
            }
          ],
          "repo": "https://github.com/adaltas/node-printf",
          "type": "GIT"
        }
      ]
    }
  ],
  "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.",
  "id": "CVE-2021-23354",
  "modified": "2026-03-13T21:49:00.227078099Z",
  "published": "2021-03-12T15:15:14.207Z",
  "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"
    }
  ],
  "related": [
    "SNYK-JS-PRINTF-1072096"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}