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**.

Severity (CVSS)

Base score5.3
SeverityMedium
VersionCVSS 3.0
VectorCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Provided byCNA

Weaknesses

  • CWE-367 — CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected products

VendorProductVersions
nodejsnode22.23.1 to <=22.23.1; 24.18.0 to <=24.18.0; 26.5.0 to <=26.5.0

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 04 Aug 2026 07:02 UTC.