CVE Catalog

CVE-2026-58041

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.29%

21th percentile - higher than 21% of all known CVEs

Summary

A vulnerability in Node.js in the node:sqlite module 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 directly using sqlite3_reset(), bypassing the iterator invalidation mechanism introduced for StatementSync in recent releases.

Risk Assessment

The risk is that the iterator may execute a query with stale or unexpected parameters, potentially leading to application malfunction, data leakage, or database integrity issues. Organizations using Node.js with node:sqlite in versions 22.x, 24.x, and 26.x are exposed to these threats.

Recommendation

It is recommended to immediately update Node.js to the latest patched version addressing the vulnerability in the node:sqlite module. If an update is not possible, avoid using DatabaseSync#createTagStore() with StatementSyncIterator or restrict access to the node:sqlite feature.

Other vulnerabilities in Node.js

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS