CVE-2026-58041

NameCVE-2026-58041
DescriptionA 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**.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
nodejs (PTS)bullseye12.22.12~dfsg-1~deb11u4fixed
bullseye (security)12.22.12~dfsg-1~deb11u8fixed
bookworm, bookworm (security)18.20.4+dfsg-1~deb12u2fixed
trixie (security), trixie20.19.2+dfsg-1+deb13u2vulnerable
forky, sid24.19.0+dfsg+~cs24.13.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
nodejssourcebullseye(not affected)
nodejssourcebookworm(not affected)
nodejssource(unstable)24.19.0+dfsg+~cs24.13.3-1

Notes

[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

Search for package or bug name: Reporting problems