CVE-2026-97058: Withdrawn Advisory: sprintf-js vulnerable to denial of service through unbounded precision specifiers
This advisory was withdrawn on Oct 22, 2026. The publisher no longer considers it a valid vulnerability.
Withdrawn Advisory This advisory has been withdrawn because it is the responsibility of an application to handle exceptions appropriately. This link is maintained to preserve external references. Original Description sprintf-js through 1.1.3 passes unbounded precision specifiers to toFixed, toExponential, and toPrecision methods without validation, causing uncaught RangeError exceptions.
Published Sep 24, 2026 · Updated Oct 22, 2026
Affected packages
sprintf-js
- Ecosystem
- npm
- Affected
- <= 1.1.3
- Fixed in
- No patched version yet
- Check
npm ls sprintf-js
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Withdrawn Advisory
This advisory has been withdrawn because it is the responsibility of an application to handle exceptions appropriately. This link is maintained to preserve external references.
Original Description
sprintf-js through 1.1.3 passes unbounded precision specifiers to toFixed, toExponential, and toPrecision methods without validation, causing uncaught RangeError exceptions. Attackers who control format strings can inject precision values exceeding ECMAScript limits to abort calling operations with minimal payload.
Credited to rkunjappan, jdesulme, BlackishGreen33.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-97058
- https://github.com/alexei/sprintf.js/issues/237
- https://github.com/alexei/sprintf.js/blob/3a0d8c26d291b5bd9f1974877ecc50739921d6f5/src/sprintf.js#L17
- https://github.com/alexei/sprintf.js/blob/3a0d8c26d291b5bd9f1974877ecc50739921d6f5/src/sprintf.js#L84-L90
- https://www.vulncheck.com/advisories/sprintf-js-through-1.1.3-denial-of-service-via-unbounded-precision
- https://github.com/alexei/sprintf.js/issues/237#issuecomment-6159075240
- https://github.com/advisories/GHSA-hp3w-g68c-fv3c
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
