Skip to main content

Node.js SQLite EUVDEUVD-2026-52561

| CVE-2026-58041 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
5.3
CVSS 3.0 · Vendor
Share

Severity by source

Vendor (CNA) PRIMARY
5.3 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
vuln.today AI
5.3 MEDIUM

Network-reachable via application requests but TOCTOU timing requirement justifies AC:H; integrity only, as stale iterators enable incorrect data writes without confidentiality or availability impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE
MEDIUM
qualitative
Red Hat
5.3 MEDIUM
qualitative

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

5
Source Code Evidence Fetched
Aug 04, 2026 - 01:23 vuln.today
Analysis Generated
Aug 04, 2026 - 01:23 vuln.today
CVSS changed
Aug 04, 2026 - 01:22 NVD
5.3 (MEDIUM)
CVE Published
Jul 29, 2026 - 14:02 github-releases
MEDIUM 5.3
CVE Published
Jul 29, 2026 - 14:02 github-releases
UNKNOWN (no severity yet)

Description PRE-NVD

Disclosed via GitHub release of nodejs/node. NVD scoring and full description are pending.

AnalysisAI

The built-in sqlite module in Node.js 26.x before v26.5.1 fails to invalidate tag store iterators when a prepared statement is reset, creating a TOCTOU window that a network-reachable, unauthenticated attacker (requiring user interaction) can abuse to achieve high integrity impact against the affected application. Fixed in Node.js v26.5.1 released 2026-07-29 by Matteo Collina. No public exploit code exists and no CISA KEV listing is present at time of analysis; however, the High integrity impact (I:H) in the CVSS vector warrants prompt patching for any application actively using the Node.js built-in sqlite module.

Technical ContextAI

The vulnerability resides in Node.js's built-in sqlite module, which was introduced in Node.js v22.5.0 as a first-class JavaScript binding to SQLite. The root cause is CWE-367 (Time-Of-Check Time-Of-Use Race Condition): when a prepared statement is reset - a common operation to re-execute a statement with new parameters - the internal tag store iterators that hold references to that statement's state are not invalidated. Code that subsequently iterates over those stale handles operates on inconsistent internal state, creating the TOCTOU window between the point the reset is observed and the point the iterator is consumed. The fix, attributed to Matteo Collina in nodejs-private/node-private, explicitly invalidates these iterators upon statement reset, closing the race window. No CPE string has been published to NVD at the time of this analysis as the disclosure is pre-NVD.

RemediationAI

Upgrade Node.js to version 26.5.1 or later, as released on 2026-07-29 and documented at https://github.com/nodejs/node/releases/tag/v26.5.1 and https://nodejs.org/en/blog/vulnerability/july-2026-security-releases. The patch 'sqlite: invalidate tag store iterators on statement reset' directly closes the TOCTOU window. If an immediate upgrade is not feasible, consider auditing application code for patterns where statement.reset() is called while tag store iterators remain in active use, and serializing or refactoring those code paths to eliminate the race window - though this has the trade-off of increased code complexity and risk of introducing other logic errors. Applications that do not use Node.js's built-in sqlite module are not exposed to this vulnerability and require no action for this specific CVE.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Not-Affected

Share

EUVD-2026-52561 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy