CVE-2026-58041 Details
Description
A flaw in Node.js node:sqlite allows a stale StatementSyncIterator created through DatabaseSync#createTagStore() to continue executing a cached prepared statement after it has been reset and rebound with new parameters. SQLTagStore resets cached statements using sqlite3_reset() directly, bypassing the iterator invalidation mechanism introduced for StatementSync in recent releases This vulnerability affects Node.js **22.x**, **24.x**, and **26.x**.
A vulnerability exists in Node.js versions 22.x, 24.x, and 26.x within the node:sqlite module. The issue arises in the SQLTagStore implementation, where a stale StatementSyncIterator can continue to execute a cached prepared statement even after it has been reset and rebound with new parameters. This occurs because SQLTagStore resets cached statements by directly calling sqlite3_reset(), which bypasses the intended iterator invalidation mechanism for StatementSync that was introduced in recent releases. As a result, the vulnerability could potentially be exploited to manipulate the execution of SQL statements in an unintended manner.
Users can upgrade to Node.js versions 22.23.2, 24.18.1, or 26.5.1 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://nodejs.org/en/blog/vulnerability/july-2026-security-releases | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | CISA-ADP |
| Aug 4, 2026 | New CVE Received | [email protected] |