cve.bz

CVE-2026-58041 nodejs node

5.3 mediumEPSS 0.3%

Medium (5.3) in nodejs node. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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**.

Severity

CVSS 3.0

5.3 medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58041 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58041?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58041?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58041 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
nodejs nodefrom 22.23.1 through 22.23.1
nodejs nodefrom 24.18.0 through 24.18.0
nodejs nodefrom 26.5.0 through 26.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14nodejs24.19.0+dfsg+~cs24.13.3-1DEBIAN-CVE-2026-58041
Ubuntu24.04:LTS, 26.04:LTS, 26.10 and 5 morenodejsno fix listedUBUNTU-CVE-2026-58041
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.19.0-1.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.1.14-2.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamnpm1:11.17.0-1.24.19.0.1.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamv8-13.6-devel3:13.6.233.17-1.24.19.0.1.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.19.0-1.module+el9.8.0+24708+e71d2e1dRHSA-2026:61386
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:26.8.2-1.module+el9.9.0+24929+16cef9a5RHSA-2026:97855
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:3.1.14-1.module+el9.9.0+24923+ac50c00fRHSA-2026:97855
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:3.1.14-3.module+el9.8.0+24708+e71d2e1dRHSA-2026:61386
Red Hatenterprise_linux:9::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el9.8.0+24708+e71d2e1dRHSA-2026:61386
Red Hatenterprise_linux:9::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el9.9.0+24923+ac50c00fRHSA-2026:97855
Red Hatenterprise_linux:9::appstreamnpm1:11.17.0-1.24.19.0.1.module+el9.8.0+24708+e71d2e1dRHSA-2026:61386
12 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Web and Scripting 15 SP7nodejs2424.18.1-150700.15.16.1SUSE-SU-2026:3520-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2424.18.1-160000.1.1SUSE-SU-2026:23131-1 SUSE-SU-2026:23155-1
openSUSELeap 16.0nodejs2424.18.1-160000.1.1openSUSE-SU-2026:21546-1
openSUSETumbleweednodejs2424.18.1-1.1openSUSE-SU-2026:11439-1
openSUSETumbleweednodejs2626.5.1-1.1openSUSE-SU-2026:11440-1
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:24.19.0-1.module_el8.10.0+4268+8e07aa5aALSA-2026:62583
AlmaLinux8nodejs-nodemon3.1.14-2.module_el8.10.0+4250+09238ed4ALSA-2026:62583
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:62583
AlmaLinux8npm1:11.17.0-1.24.19.0.1.module_el8.10.0+4268+8e07aa5aALSA-2026:62583
AlmaLinux8v8-13.6-devel3:13.6.233.17-1.24.19.0.1.module_el8.10.0+4268+8e07aa5aALSA-2026:62583
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:24.19.0-1.module_el9.8.0+301+084fac05ALSA-2026:61386
AlmaLinux9nodejs-nodemon3.1.14-3.module_el9.8.0+292+f4eaf8b2ALSA-2026:61386
AlmaLinux9nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el9.7.0+209+ecf6523eALSA-2026:61386
AlmaLinux9npm1:11.17.0-1.24.19.0.1.module_el9.8.0+301+084fac05ALSA-2026:61386
AlmaLinux9v8-13.6-devel3:13.6.233.17-1.24.19.0.1.module_el9.8.0+301+084fac05ALSA-2026:61386
AlmaLinux10nodejs24-docs1:24.19.0-1.el10_2ALSA-2026:61377
AlmaLinux10nodejs24-npm1:11.17.0-1.24.19.0.1.el10_2ALSA-2026:61377
2 more for AlmaLinux in the JSON.
Rocky Linux9nodejs-nodemon0:3.1.14-1.module+el9.8.0+40263+faa47049RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.7.0+40052+e32ea525RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.7.0+40153+4d595597RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.7.0+40165+d075e3f2RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.8.0+40164+8921ab53RLSA-2026:97855
Rocky Linux10nodejs26, nodejs26-docs, nodejs26-libs and 5 more1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux10nodejs26-npm1:11.20.0-1.26.12.1.3.el10_3RLSA-2026:98619
Alpinev3.23, v3.24nodejs24.18.1-r0ALPINE-CVE-2026-58041
Alpinev3.24nodejs-current26.5.1-r0ALPINE-CVE-2026-58041
Alpaquitastreamnodejs24.18.1-r0BELL-CVE-2026-58041
BellSoft Hardened Containersstreamnodejs24.18.1-r0BELL-CVE-2026-58041

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw strictly impacts data Integrity with zero effect on Confidentiality or Availability (C:N, I:H, A:N). Practical exploitation occurs when an application utilizes the experimental `node:sqlite` SQL tag store feature while managing statement iterators. Under these high-complexity conditions (AC:H) requiring specific user-driven interaction sequences (UI:R), a stale iterator can execute a reset statement with new parameters, leading to unintended database writes. Applications that do not use `node:sqlite` tag stores or statement iterators are completely unaffected. Red Hat and upstream CVSS scores align at 5.3 (Moderate) due to these strict operational constraints.

Red Hat's mitigation

Applications using Node.js that leverage the experimental `node:sqlite` SQL tag store feature should avoid using `DatabaseSync#createTagStore()` and `StatementSyncIterator` to prevent unintended data modification. If this feature is not essential, refactoring the application to remove its usage will mitigate the vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nodejs24-1:24.19.0-1.el10_2Fixed 2026-08-31RHSA-2026:61377
Red Hat Enterprise Linux 8nodejs:24-8100020260819113942.6d880403Fixed 2026-09-02RHSA-2026:62583
Red Hat Enterprise Linux 9nodejs:24-9080020260819113946.rhel9Fixed 2026-08-31RHSA-2026:61386
Red Hat Enterprise Linux 9nodejs:26-9090020260922082827.rhel9Fixed 2026-11-10RHSA-2026:97855
Red Hat Hardened Imagesnodejs22-main-10.9.8-1.22.23.2.2.3.hum1Fixed 2026-07-29RHSA-2026:48305
Red Hat Hardened Imagesnodejs22-main-22.23.2-2.3.hum1Fixed 2026-07-29RHSA-2026:48305
Red Hat Hardened Imagesnodejs24-main-11.16.0-1.24.18.1.0.1.hum1Fixed 2026-07-30RHSA-2026:48537
Red Hat Hardened Imagesnodejs24-main-24.18.1-0.1.hum1Fixed 2026-07-30RHSA-2026:48537
Red Hat Hardened Imagesnodejs26-main-11.19.0-1.26.7.0.1.5.1.hum1Fixed 2026-08-10RHSA-2026:52990
Red Hat Hardened Imagesnodejs26-main-26.7.0-1.5.1.hum1Fixed 2026-08-10RHSA-2026:52990
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat Enterprise Linux 10nodejs26Affected
Red Hat Enterprise Linux 8nodejs:22/nodejsNot affected
Red Hat Enterprise Linux 9nodejs:22/nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58041.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON