CVE-2026-58041: node:sqlite SQLTagStore Iterator Replay Lets Attacker Re-Execute Victim-Bound Writes Indefinitely

Published Jul 29, 2026
·
Updated

A flaw in 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 sqlite3reset() directly, bypassing the iterator invalidation mechanism introduced for StatementSync in recent releases.

Other sources

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 sqlite3reset() directly, bypassing the iterator invalidation mechanism introduced for StatementSync in recent releases

This vulnerability affects Node.js 22.x, 24.x, and 26.x.

— Node.Js

Affected Software

8 affected componentsFixes available
npm/node:sqlite
OpenJS Foundation Node.js>=22.0.0<=22.x, >=24.0.0<=24.x, >=26.0.0<=26.x
Node.js Node.js>=24.0.0<24.18.1, >=26.0.0<26.5.1
24.18.126.5.1
Node.js Node.js>=24.0.0<24.18.1
24.18.1
Node.js Node.js>=26.0.0<26.5.1
26.5.1
alpine/nodejs<24.18.1-r0
24.18.1-r0
alpine/nodejs<24.18.1-r0
24.18.1-r0
alpine/nodejs-current<26.5.1-r0
26.5.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 24.18.1Fixed in 26.5.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 24.18.1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 26.5.1
  4. Upgrade

    Upgrade alpine/nodejs to a version that resolves this vulnerability.

    Fixed in 24.18.1-r0
  5. Upgrade

    Upgrade alpine/nodejs-current to a version that resolves this vulnerability.

    Fixed in 26.5.1-r0

Event History

Jul 29, 2026
CVE Published
via Node.js·12:00 AM
Data Sourced
via Node.js·12:00 AM
DescriptionSeverityAffected Software
Aug 4, 2026
CVE Published
via MITRE·12:49 AM
Data Sourced
via MITRE·12:49 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·01:16 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-58041?

The severity of CVE-2026-58041 is classified as medium with a score of 5.3.

2

How do I fix CVE-2026-58041?

To fix CVE-2026-58041, ensure you are using the updated versions of Node.js and the node:sqlite package that address this vulnerability.

3

What kind of vulnerability is CVE-2026-58041?

CVE-2026-58041 is classified as a SQL Injection vulnerability.

4

What software is affected by CVE-2026-58041?

CVE-2026-58041 affects the npm/node:sqlite package and OpenJS Foundation Node.js.

5

What does CVE-2026-58041 allow an attacker to do?

CVE-2026-58041 allows an attacker to execute a stale StatementSyncIterator, potentially leading to unintended behavior or exposure of data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203