Node.js 18 and 2 others: Improper Control of Generation of Code ('Code Injection')
CVE-2024-22020 is fixed in 21 products on 2 platforms, first by Node.js 18 18.20.4, released July 8, 2024. It is not reported as exploited. Patch Radar priority: Routine.
A security flaw in Node.js allows a bypass of network import restrictions. By embedding non-network imports in data URLs, an attacker can execute arbitrary code, compromising system security. Verified on various platforms, the vulnerability is mitigated by forbidding data URLs in network imports. Exploiting this flaw can violate network import security, posing a risk to developers and servers.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Windows apps | |||
| Node.js 18 | 18.20.4 | Node.js 18 18.20.4 | Jul 8, 2024 |
| Node.js 20 | 20.15.1 | Node.js 20 20.15.1 | Jul 8, 2024 |
| Node.js 22 | 22.4.1 | Node.js 22 22.4.1 | Jul 8, 2024 |
| Linux | |||
| nodejs · Debian 12.15 (bookworm) | 18.20.4+dfsg-1~deb12u1 | DEBIAN-CVE-2024-22020 | Jul 9, 2024 |
| nodejs · Debian 13.5 (trixie) | 20.15.1+dfsg-1 | DEBIAN-CVE-2024-22020 | Jul 9, 2024 |
| nodejs · Debian 14 | 20.15.1+dfsg-1 | DEBIAN-CVE-2024-22020 | Jul 9, 2024 |
| nodejs · RHEL 8 | 1:18.20.4-1.module+el8.10.0+22199+56ea0ead | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs · RHEL 9 | 1:18.20.4-1.module+el9.4.0+22195+c221878e | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs · almalinux 8 | 1:18.20.4-1.module_el8.10.0+3890+5a092792 | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs · almalinux 9 | 1:18.20.4-1.module_el9.4.0+112+bb28ff81 | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs · ol 8 | 1:20.16.0-1.module+el8.10.0+90391+162fb07b | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs · ol 9 | 1:18.20.4-1.module+el9.4.0+90400+35c5e203 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs · rocky 8 | 1:18.20.4-1.module+el8.10.0+1865+67d146ca | RLSA-2024:6148 | Sep 17, 2024 |
| nodejs-devel · RHEL 8 | 1:18.20.4-1.module+el8.10.0+22199+56ea0ead | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs-devel · RHEL 9 | 1:18.20.4-1.module+el9.4.0+22195+c221878e | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs-devel · almalinux 8 | 1:18.20.4-1.module_el8.10.0+3890+5a092792 | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs-devel · almalinux 9 | 1:18.20.4-1.module_el9.4.0+112+bb28ff81 | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs-devel · ol 8 | 1:20.16.0-1.module+el8.10.0+90391+162fb07b | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs-devel · ol 9 | 1:18.20.4-1.module+el9.4.0+90400+35c5e203 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs-docs · RHEL 8 | 1:18.20.4-1.module+el8.10.0+22199+56ea0ead | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs-docs · RHEL 9 | 1:18.20.4-1.module+el9.4.0+22195+c221878e | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs-docs · almalinux 8 | 1:18.20.4-1.module_el8.10.0+3890+5a092792 | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs-docs · almalinux 9 | 1:18.20.4-1.module_el9.4.0+112+bb28ff81 | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs-docs · ol 8 | 1:20.16.0-1.module+el8.10.0+90391+162fb07b | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs-docs · ol 9 | 1:18.20.4-1.module+el9.4.0+90400+35c5e203 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs-full-i18n · RHEL 8 | 1:18.20.4-1.module+el8.10.0+22199+56ea0ead | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs-full-i18n · RHEL 9 | 1:18.20.4-1.module+el9.4.0+22195+c221878e | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs-full-i18n · almalinux 8 | 1:18.20.4-1.module_el8.10.0+3890+5a092792 | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs-full-i18n · almalinux 9 | 1:18.20.4-1.module_el9.4.0+112+bb28ff81 | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs-full-i18n · ol 8 | 1:20.16.0-1.module+el8.10.0+90391+162fb07b | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs-full-i18n · ol 9 | 1:18.20.4-1.module+el9.4.0+90400+35c5e203 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs-nodemon · RHEL 8 | 0:3.0.1-1.module+el8.10.0+21159+f5a7145d | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs-nodemon · RHEL 9 | 0:3.0.1-1.module+el9.3.0+19762+d716bf3b | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs-nodemon · almalinux 8 | 3.0.1-1.module_el8.8.0+3613+1ed8c91d | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs-nodemon · almalinux 9 | 3.0.1-1.module_el9.2.0+36+853e48f5 | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs-nodemon · ol 8 | 0:3.0.1-1.module+el8.9.0+90082+b6a613a6 | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs-nodemon · ol 9 | 0:3.0.1-1.module+el9.3.0+90167+01064547 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs-nodemon · rocky 8 | 0:3.0.1-1.module+el8.10.0+1666+930e28e8 | RLSA-2024:6148 | Sep 17, 2024 |
| nodejs-nodemon · rocky 9 | 0:3.0.1-1.module+el9.6.0+32322+a8b1fd01 | RLSA-2024:6147 | Sep 17, 2024 |
| nodejs-packaging · RHEL 8 | 0:2021.06-4.module+el8.9.0+19439+7b18b275 | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs-packaging · RHEL 9 | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs-packaging · almalinux 8 | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs-packaging · almalinux 9 | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs-packaging · ol 8 | 0:2021.06-4.module+el8.9.0+90082+b6a613a6 | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs-packaging · ol 9 | 0:2021.06-4.module+el9.1.0+20762+f52d7401 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs-packaging · rocky 8 | 0:2021.06-4.module+el8.10.0+1667+4a788d89 | RLSA-2024:6148 | Sep 17, 2024 |
| nodejs-packaging · rocky 9 | 0:2021.06-4.module+el9.5.0+31770+0da7192d | RLSA-2024:6147 | Sep 17, 2024 |
| nodejs-packaging-bundler · RHEL 8 | 0:2021.06-4.module+el8.9.0+19439+7b18b275 | RHSA-2024:6148 | Sep 3, 2024 |
| nodejs-packaging-bundler · RHEL 9 | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2024:6147 | Sep 3, 2024 |
| nodejs-packaging-bundler · almalinux 8 | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2024:6148 | Sep 3, 2024 |
| nodejs-packaging-bundler · almalinux 9 | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2024:6147 | Sep 3, 2024 |
| nodejs-packaging-bundler · ol 8 | 0:2021.06-4.module+el8.9.0+90082+b6a613a6 | ELSA-2024-5814 | Aug 26, 2024 |
| nodejs-packaging-bundler · ol 9 | 0:2021.06-4.module+el9.1.0+20762+f52d7401 | ELSA-2024-6147 | Sep 4, 2024 |
| nodejs20 · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20 · opensuse-leap 15.6 | 20.15.1-150600.3.3.2 | SUSE-SU-2024:2574-1 | Jul 22, 2024 |
| nodejs20 · sles 15.6 | 20.15.1-150600.3.3.2 | SUSE-SU-2024:2574-1 | Jul 22, 2024 |
| nodejs20-debuginfo · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-debugsource · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-devel · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-docs · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-full-i18n · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-libs · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-libs-debuginfo · amzn 2023 | 1:20.18.0-1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| nodejs20-npm · amzn 2023 | 1:10.8.2-1.20.18.0.1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
| npm · RHEL 8 | 1:10.7.0-1.18.20.4.1.module+el8.10.0+22199+56ea0ead | RHSA-2024:6148 | Sep 3, 2024 |
| npm · RHEL 9 | 1:10.7.0-1.18.20.4.1.module+el9.4.0+22195+c221878e | RHSA-2024:6147 | Sep 3, 2024 |
| npm · almalinux 8 | 1:10.7.0-1.18.20.4.1.module_el8.10.0+3890+5a092792 | ALSA-2024:6148 | Sep 3, 2024 |
| npm · almalinux 9 | 1:10.7.0-1.18.20.4.1.module_el9.4.0+112+bb28ff81 | ALSA-2024:6147 | Sep 3, 2024 |
| npm · ol 8 | 1:10.8.1-1.20.16.0.1.module+el8.10.0+90391+162fb07b | ELSA-2024-5814 | Aug 26, 2024 |
| npm · ol 9 | 1:10.7.0-1.18.20.4.1.module+el9.4.0+90400+35c5e203 | ELSA-2024-6147 | Sep 4, 2024 |
| v8-11.3-devel · amzn 2023 | 3:11.3.244.8-1.20.18.0.1.amzn2023.0.2 | ALAS2023-2024-768 | Nov 13, 2024 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
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.