CVE-2026-97058: Improper Validation of Specified Quantity in Input in alexei sprintf-js
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.
AI Analysis
Technical Summary
The sprintf-js library versions up to 1.1.3 improperly validate precision specifiers in format strings. These unbounded precision values are passed to JavaScript's toFixed, toExponential, and toPrecision methods without checks, leading to uncaught RangeError exceptions. An attacker controlling format strings can exploit this by injecting excessively large precision values, causing the calling operations to abort with minimal payload.
Potential Impact
This vulnerability can cause application crashes due to uncaught RangeError exceptions when processing maliciously crafted format strings. There is no indication of privilege escalation, data leakage, or remote code execution. The impact is limited to denial of service via application abort.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted format strings or implement input validation to restrict precision specifiers within safe bounds.
CVE-2026-97058: Improper Validation of Specified Quantity in Input in alexei sprintf-js
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.
CVSS v4.0
Score 6.9medium
Affected software
alexei
sprintf-js
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The sprintf-js library versions up to 1.1.3 improperly validate precision specifiers in format strings. These unbounded precision values are passed to JavaScript's toFixed, toExponential, and toPrecision methods without checks, leading to uncaught RangeError exceptions. An attacker controlling format strings can exploit this by injecting excessively large precision values, causing the calling operations to abort with minimal payload.
Potential Impact
This vulnerability can cause application crashes due to uncaught RangeError exceptions when processing maliciously crafted format strings. There is no indication of privilege escalation, data leakage, or remote code execution. The impact is limited to denial of service via application abort.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted format strings or implement input validation to restrict precision specifiers within safe bounds.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-23T23:51:32.670Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab52dc3f7a7c54106660577
Added to database: 09/24/2026, 14:03:47 UTC
Last enriched: 09/24/2026, 14:18:39 UTC
Last updated: 09/25/2026, 01:56:00 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.