# CVE-2026-58041: Node.js and 2 others: Time-of-check Time-of-use (TOCTOU) Race Condition

CVE-2026-58041 is fixed in 22 products on 2 platforms, first by Node.js 26.5.1, released July 28, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-58041
- Priority: Routine
- CVSS: 5.3 (Important)
- EPSS: 0.0029
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 4, 2026
- Weakness: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-58041

## Description

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**.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | Node.js | 26.5.1 | [Node.js 26.5.1](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs-26.5.1.md) | Jul 28, 2026 |
| Windows apps | Node.js (LTS) | 24.18.1 | [Node.js (LTS) 24.18.1](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.lts-24.18.1.md) | Jul 28, 2026 |
| Windows apps | Node.js 22 | 22.23.2 | [Node.js 22 22.23.2](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.22-22.23.2.md) | Jul 28, 2026 |
| Linux | nodejs Debian 14 | 24.19.0+dfsg+~cs24.13.3-1 | [DEBIAN-CVE-2026-58041](https://patchblox.com/security/data/fix/linux/debian-cve-2026-58041.md) | Aug 15, 2026 |
| Linux | nodejs RHEL 8 | 1:24.19.0-1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs RHEL 9 | 1:24.19.0-1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs almalinux 8 | 1:24.19.0-1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs almalinux 9 | 1:24.19.0-1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-devel RHEL 8 | 1:24.19.0-1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-devel RHEL 9 | 1:24.19.0-1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-devel almalinux 8 | 1:24.19.0-1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-devel almalinux 9 | 1:24.19.0-1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-docs RHEL 8 | 1:24.19.0-1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-docs RHEL 9 | 1:24.19.0-1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-docs almalinux 8 | 1:24.19.0-1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-docs almalinux 9 | 1:24.19.0-1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-full-i18n RHEL 8 | 1:24.19.0-1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-full-i18n RHEL 9 | 1:24.19.0-1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-full-i18n almalinux 8 | 1:24.19.0-1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-full-i18n almalinux 9 | 1:24.19.0-1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-libs RHEL 8 | 1:24.19.0-1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-libs RHEL 9 | 1:24.19.0-1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-libs almalinux 8 | 1:24.19.0-1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-libs almalinux 9 | 1:24.19.0-1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-nodemon RHEL 8 | 0:3.1.14-2.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-nodemon RHEL 9 | 0:3.1.14-3.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-nodemon almalinux 8 | 3.1.14-2.module_el8.10.0+4250+09238ed4 | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-nodemon almalinux 9 | 3.1.14-3.module_el9.8.0+292+f4eaf8b2 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-packaging RHEL 8 | 0:2021.06-6.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-packaging RHEL 9 | 0:2021.06-6.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-packaging almalinux 8 | 2021.06-6.module_el8.10.0+4086+70facd4a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-packaging almalinux 9 | 2021.06-6.module_el9.7.0+209+ecf6523e | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs-packaging-bundler RHEL 8 | 0:2021.06-6.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | nodejs-packaging-bundler RHEL 9 | 0:2021.06-6.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | nodejs-packaging-bundler almalinux 8 | 2021.06-6.module_el8.10.0+4086+70facd4a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | nodejs-packaging-bundler almalinux 9 | 2021.06-6.module_el9.7.0+209+ecf6523e | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | nodejs24 RHEL 10 | 24.19.0-1.el10_2 | [RHSA-2026:61377](https://patchblox.com/security/data/fix/linux/rhsa-2026-61377.md) | Sep 2, 2026 |
| Linux | nodejs24 almalinux 10 | 1:24.19.0-1.el10_2 | [ALSA-2026:61377](https://patchblox.com/security/data/fix/linux/alsa-2026-61377.md) | Aug 31, 2026 |
| Linux | nodejs24 amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24 opensuse-leap 16.0 | 24.18.1-160000.1.1 | [OPENSUSE-SU-2026:21546-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21546-1.md) | Aug 10, 2026 |
| Linux | nodejs24 sles 15.7 | 24.18.1-150700.15.16.1 | [SUSE-SU-2026:3520-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3520-1.md) | Aug 6, 2026 |
| Linux | nodejs24 sles 16.0 | 24.18.1-160000.1.1 | [SUSE-SU-2026:23155-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23155-1.md) | Aug 10, 2026 |
| Linux | nodejs24-debuginfo amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-debugsource amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-devel almalinux 10 | 1:24.19.0-1.el10_2 | [ALSA-2026:61377](https://patchblox.com/security/data/fix/linux/alsa-2026-61377.md) | Aug 31, 2026 |
| Linux | nodejs24-devel amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-docs almalinux 10 | 1:24.19.0-1.el10_2 | [ALSA-2026:61377](https://patchblox.com/security/data/fix/linux/alsa-2026-61377.md) | Aug 31, 2026 |
| Linux | nodejs24-docs amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-full-i18n almalinux 10 | 1:24.19.0-1.el10_2 | [ALSA-2026:61377](https://patchblox.com/security/data/fix/linux/alsa-2026-61377.md) | Aug 31, 2026 |
| Linux | nodejs24-full-i18n amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-libs almalinux 10 | 1:24.19.0-1.el10_2 | [ALSA-2026:61377](https://patchblox.com/security/data/fix/linux/alsa-2026-61377.md) | Aug 31, 2026 |
| Linux | nodejs24-libs amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-libs-debuginfo amzn 2023 | 1:24.18.1-1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | nodejs24-npm almalinux 10 | 1:11.17.0-1.24.19.0.1.el10_2 | [ALSA-2026:61377](https://patchblox.com/security/data/fix/linux/alsa-2026-61377.md) | Aug 31, 2026 |
| Linux | nodejs24-npm amzn 2023 | 1:11.16.0-1.24.18.1.1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |
| Linux | npm RHEL 8 | 1:11.17.0-1.24.19.0.1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | npm RHEL 9 | 1:11.17.0-1.24.19.0.1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | npm almalinux 8 | 1:11.17.0-1.24.19.0.1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | npm almalinux 9 | 1:11.17.0-1.24.19.0.1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | v8-13.6-devel RHEL 8 | 3:13.6.233.17-1.24.19.0.1.module+el8.10.0+24711+b610b202 | [RHSA-2026:62583](https://patchblox.com/security/data/fix/linux/rhsa-2026-62583.md) | Sep 13, 2026 |
| Linux | v8-13.6-devel RHEL 9 | 3:13.6.233.17-1.24.19.0.1.module+el9.8.0+24708+e71d2e1d | [RHSA-2026:61386](https://patchblox.com/security/data/fix/linux/rhsa-2026-61386.md) | Sep 13, 2026 |
| Linux | v8-13.6-devel almalinux 8 | 3:13.6.233.17-1.24.19.0.1.module_el8.10.0+4268+8e07aa5a | [ALSA-2026:62583](https://patchblox.com/security/data/fix/linux/alsa-2026-62583.md) | Sep 2, 2026 |
| Linux | v8-13.6-devel almalinux 9 | 3:13.6.233.17-1.24.19.0.1.module_el9.8.0+301+084fac05 | [ALSA-2026:61386](https://patchblox.com/security/data/fix/linux/alsa-2026-61386.md) | Aug 31, 2026 |
| Linux | v8-13.6-devel amzn 2023 | 3:13.6.233.17-1.24.18.1.1.amzn2023.0.2 | [ALAS2023-2026-2059](https://patchblox.com/security/data/fix/linux/alas2023-2026-2059.md) | Aug 17, 2026 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
