CVE-2026-58041
Vulnerability Summary
Timeline
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**.
CVSS Metrics
- v3.0•MEDIUM•Score: 5.3CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS Trends
Current EPSS score: 0.25%• Percentile: 17%
Techniques & Countermeasures
- CWE-367•Time-of-check Time-of-use (TOCTOU) Race Condition
The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
Affected Systems
- alpine•nodejs
< 24.18.1-r0 | < 24.18.1-r0
- chainguard•nodejs-20
all
- chainguard•nodejs-25
all
- wolfi•nodejs-20
all
- wolfi•nodejs-25
all
- debian•nodejs
all | all | all | all | < 24.19.0+dfsg+~cs24.13.3-1
- ubuntu•nodejs
all | all | all
- nodejs•node
22.23.1 | 24.18.0 | 26.5.0
References (6)
- https://nodejs.org/en/blog/vulnerability/july-2026-security-releases
- https://security.alpinelinux.org/vuln/CVE-2026-58041
- https://ubuntu.com/security/CVE-2026-58041
- https://www.cve.org/CVERecord?id=CVE-2026-58041
- https://nodejs.org/en/blog/vulnerability/july-2026-security-releases#nodesqlite-sqltagstore-iterator-replay-can-re-execute-writes-cve-2026-58041---medium
- https://security-tracker.debian.org/tracker/CVE-2026-58041