Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. sprintf-js
  4. ›
  5. CVE-2026-97058

CVE-2026-97058: Withdrawn Advisory: sprintf-js vulnerable to denial of service through unbounded precision specifiers

September 24, 2026 (updated October 22, 2026)

Withdrawn Advisory

This advisory has been withdrawn because it is the responsibility of an application to handle exceptions appropriately.

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.

References

  • github.com/advisories/GHSA-hp3w-g68c-fv3c
  • github.com/alexei/sprintf.js/blob/3a0d8c26d291b5bd9f1974877ecc50739921d6f5/src/sprintf.js
  • github.com/alexei/sprintf.js/blob/3a0d8c26d291b5bd9f1974877ecc50739921d6f5/src/sprintf.js
  • github.com/alexei/sprintf.js/issues/237
  • nvd.nist.gov/vuln/detail/CVE-2026-97058
  • www.vulncheck.com/advisories/sprintf-js-through-1.1.3-denial-of-service-via-unbounded-precision

Code Behaviors & Features

Detect and mitigate CVE-2026-97058 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

None

Solution

No action required. This advisory has been withdrawn.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-1284: Improper Validation of Specified Quantity in Input

Source file

npm/sprintf-js/CVE-2026-97058.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 15 Nov 2026 00:16:00 +0000.