VYPR
Medium severity5.3NVD Advisory· Published Mar 12, 2021· Updated Jun 17, 2026

CVE-2021-23354

CVE-2021-23354

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
printfnpm
< 0.6.10.6.1

Affected products

3
  • cpe:2.3:a:adaltas:printf:*:*:*:*:*:node.js:*:*
    Range: <0.6.1
  • printf/printfdescription
  • ghsa-coords
    Range: < 0.6.1

Patches

Vulnerability mechanics

References

6

News mentions

0

No linked articles in our index yet.