Skip to main content

CVE-2026-97058: Improper Validation of Specified Quantity in Input in alexei sprintf-js

0
Medium
VulnerabilityCVE-2026-97058cvecve-2026-97058
Published: 09/24/2026 (09/24/2026, 13:51:58 UTC)
Source: CVE Database V5
Vendor/Project: alexei
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

alexei

sprintf-js

Affected versions
>=0 <=1.1.3
sprintf-js
pkg:npm/sprintf-js
Affected versions
>=0 <=1.1.3

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

AILast updated: 09/24/2026, 14:18:39 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses