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.0: 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/E:U/U:Clear
CVE-ID: CVE-2026-58041
CWE-ID: CWE-664
Exploitation vector: Local access
Exploit availability: No public exploit available
Affected software:
Node.js

Detailed vulnerability description

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().


How to mitigate CVE-2026-58041

Install security update from vendor's website.

Sources