Improper control of a resource through its lifetime in Node.js - CVE-2026-58041

 

Improper control of a resource through its lifetime in Node.js - CVE-2026-58041

Published: July 29, 2026 / Updated: July 29, 2026


Vulnerability identifier: #VU140043
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-58041
CWE-ID: CWE-664
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to re-execute writes with new parameters.

The vulnerability exists due to improper state management in node:sqlite SQLTagStore when a stale StatementSyncIterator continues executing a cached prepared statement after it has been reset and rebound with new parameters. A local user can reuse a stale iterator to re-execute writes with new parameters.

The issue involves StatementSyncIterator objects created through DatabaseSync#createTagStore().


Affected software

Node.js
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
Web and Scripting Module
nodejs24-docs
npm24
nodejs24
nodejs24-debugsource
nodejs24-debuginfo
nodejs24-devel

How to mitigate CVE-2026-58041

Install security update from vendor's website.

Node.js - addressed in versions 24.18.1, 26.5.1
nodejs24-docs - update to 24.18.1-150700.15.16.1
npm24 - update to 24.18.1-150700.15.16.1
nodejs24 - update to 24.18.1-150700.15.16.1
nodejs24-debugsource - update to 24.18.1-150700.15.16.1
nodejs24-debuginfo - update to 24.18.1-150700.15.16.1
nodejs24-devel - update to 24.18.1-150700.15.16.1

External References

Related Security Bulletins