CVE-2026-58041: Stale SQLite iterator write re-execution in Node.js
CVE-2026-58041 is an iterator-lifecycle flaw in the Node.js node:sqlite module affecting the 22.x, 24.x, and 26.x release lines. A stale StatementSyncIterator created through DatabaseSync#createTagStore() can continue executing a cached prepared statement after the statement has been reset and rebound with new parameters. SQLTagStore calls sqlite3_reset() directly, bypassing the StatementSync iterator-invalidation mechanism. Resuming the stale iterator can therefore execute the statement with replacement parameters, causing unintended SQL execution and database modification.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise database integrity by re-executing SQL writes with newly bound parameters outside the application's intended execution sequence. Depending on the statement and application behavior, unintended query execution may also expose data. The affected database operations remain constrained by the application's SQLite connection and statement capabilities.
Mitigation
If you can’t patch tonight, do this now.
No vendor-documented interim workaround is specified.
Remediation
Patch, then assume compromise.
Upgrade to Node.js 22.23.2, 24.18.1, or 26.5.1, or a later supported release containing the fix. For distribution-managed installations, install the corresponding vendor security update; Alpine Linux provides the fix in nodejs-current 26.5.1-r0 or later.
Exploits
No validated public exploits yet. Hidden: 3 rejected by Mallory's analysis as not a working exploit.
Frequently asked questions
- Is CVE-2026-58041 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2026-58041 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-58041?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-58041.
- Is there a patch for CVE-2026-58041?
- Upgrade to Node.js 22.23.2, 24.18.1, or 26.5.1, or a later supported release containing the fix. For distribution-managed installations, install the corresponding vendor security update; Alpine Linux provides the fix in nodejs-current 26.5.1-r0 or later.
- How severe is CVE-2026-58041?
- CVE-2026-58041 has a CVSS v3 score of 5.3 (Medium) and an EPSS score of 0.29% (14th percentile) as of Nov 27, 2026.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.