| Name | CVE-2026-58041 |
| 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**. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| nodejs (PTS) | bullseye | 12.22.12~dfsg-1~deb11u4 | fixed |
| bullseye (security) | 12.22.12~dfsg-1~deb11u8 | fixed | |
| bookworm, bookworm (security) | 18.20.4+dfsg-1~deb12u2 | fixed | |
| trixie (security), trixie | 20.19.2+dfsg-1+deb13u2 | vulnerable | |
| forky, sid | 24.19.0+dfsg+~cs24.13.3-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| nodejs | source | bullseye | (not affected) | |||
| nodejs | source | bookworm | (not affected) | |||
| nodejs | source | (unstable) | 24.19.0+dfsg+~cs24.13.3-1 |
[bookworm] - nodejs <not-affected> (vulnerable code introduced in v22 with experimental sqlite module)
[bullseye] - nodejs <not-affected> (vulnerable code introduced in v22 with experimental sqlite module)
https://nodejs.org/en/blog/vulnerability/july-2026-security-releases#nodesqlite-sqltagstore-iterator-replay-can-re-execute-writes-cve-2026-58041---medium
Fixed by: https://github.com/nodejs/node/commit/af9ff0490ce834f3b28efbc2551f96a03a829fd2 (v24.18.1)
experimental status for v22