Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-22020 EUVD-2024-19626GHSA-ch4x-f5c4-36gv

A security flaw in Node.js allows a bypass of network import restrictions. By embedding non-network imports in data URLs, an attacker can e…

Published Jul 9, 2024 · Updated Apr 30, 2025 · Assigned by hackerone

Description

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.

Affected products

VendorProductAffectedFixed
NodeJS Node 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 18.0 – < 18.20.4, 19.0 – < 19.*, 20.0 – < 20.15.1, 21.0 – < 21.*, 22.0 – < 22.4.1 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 20.15.1+dfsg-1 —
Debian 13 nodejs 20.15.1+dfsg-1 —
Debian 12 nodejs 18.20.4+dfsg-1~deb12u1 DSA-5991-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS nodejs No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 nodejs +3 1:18.20.4-1.module+el9.4.0+22195+c221878e RHSA-2024:6147, RHSA-2024:5815
RHEL 9 nodejs-nodemon 3.0.1-1.module+el9.3.0.z+20478+84a9f781 RHSA-2024:6147, RHSA-2024:5815
RHEL 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+15718+e52ec601 RHSA-2024:6147, RHSA-2024:5815
RHEL 9 npm 1:10.7.0-1.18.20.4.1.module+el9.4.0+22195+c221878e RHSA-2024:6147, RHSA-2024:5815
RHEL 8 nodejs +3 1:18.20.4-1.module+el8.10.0+22199+56ea0ead RHSA-2024:6148, RHSA-2024:5814
RHEL 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824 RHSA-2024:6148, RHSA-2024:5814
RHEL 8 nodejs-packaging +1 2021.06-4.module+el8.9.0+19439+7b18b275 RHSA-2024:6148, RHSA-2024:5814
RHEL 8 npm 1:10.7.0-1.18.20.4.1.module+el8.10.0+22199+56ea0ead RHSA-2024:6148, RHSA-2024:5814

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 nodejs +3 1:18.20.4-1.module_el9.4.0+112+bb28ff81 ALSA-2024:6147, ALSA-2024:5815
AlmaLinux 9 nodejs-nodemon 3.0.1-1.module_el9.2.0+36+853e48f5 ALSA-2024:6147, ALSA-2024:5815
AlmaLinux 9 nodejs-packaging +1 2021.06-4.module_el9.1.0+13+d9a595ea ALSA-2024:6147, ALSA-2024:5815
AlmaLinux 9 npm 1:10.7.0-1.18.20.4.1.module_el9.4.0+112+bb28ff81 ALSA-2024:6147, ALSA-2024:5815
AlmaLinux 8 nodejs +3 1:18.20.4-1.module_el8.10.0+3890+5a092792 ALSA-2024:6148, ALSA-2024:5814
AlmaLinux 8 nodejs-nodemon 3.0.1-1.module_el8.8.0+3613+1ed8c91d ALSA-2024:6148, ALSA-2024:5814
AlmaLinux 8 nodejs-packaging +1 2021.06-4.module_el8.7.0+3343+ea2b7901 ALSA-2024:6148, ALSA-2024:5814
AlmaLinux 8 npm 1:10.7.0-1.18.20.4.1.module_el8.10.0+3890+5a092792 ALSA-2024:6148, ALSA-2024:5814

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 nodejs-nodemon 3.0.1-1.module+el9.5.0+31770+0da7192d RLSA-2024:6147, RLSA-2024:5815
Rocky Linux 9 nodejs-packaging 2021.06-4.module+el9.5.0+31770+0da7192d RLSA-2024:6147, RLSA-2024:5815
Rocky Linux 8 nodejs 1:18.20.4-1.module+el8.10.0+1865+67d146ca RLSA-2024:6148, RLSA-2024:5814
Rocky Linux 8 nodejs-nodemon 3.0.1-1.module+el8.10.0+1666+930e28e8 RLSA-2024:6148, RLSA-2024:5814
Rocky Linux 8 nodejs-packaging 2021.06-4.module+el8.10.0+1667+4a788d89 RLSA-2024:6148, RLSA-2024:5814
ReleasePackageFixed inAdvisory
SLES 15 SP6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
SLES 15 SP5 nodejs18 18.20.4-150400.9.24.2 SUSE-SU-2024:2542-1
SLES 15 SP5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
SLES 12 nodejs18 18.20.4-8.24.1 SUSE-SU-2024:2496-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs20 20.15.1-1.1 openSUSE-SU-2024:14214-1
openSUSE Tumbleweed nodejs22 22.10.0-1.1 openSUSE-SU-2024:14435-1
openSUSE Tumbleweed nodejs24 24.11.1-2.1 openSUSE-SU-2025:15802-1
openSUSE Tumbleweed nodejs26 26.3.1-1.1 openSUSE-SU-2026:11110-1
openSUSE Leap 15.6 nodejs20 20.15.1-150600.3.3.2 SUSE-SU-2024:2574-1
openSUSE Leap 15.5 nodejs18 18.20.4-150400.9.24.2 SUSE-SU-2024:2542-1
openSUSE Leap 15.5 nodejs20 20.15.1-150500.11.12.2 SUSE-SU-2024:2543-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 20.15.1-r0 —
Alpine v3.23 nodejs 20.15.1-r0 —
Alpine v3.22 nodejs 20.15.1-r0 —
Alpine v3.21 nodejs 20.15.1-r0 —
Alpine v3.20 nodejs 20.15.1-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 nodejs 20.15.1-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs20 +4 1:20.18.0-1.amzn2023.0.2 ALAS2023-2024-768
Amazon Linux 2023 nodejs20-npm 1:10.8.2-1.20.18.0.1.amzn2023.0.2 ALAS2023-2024-768
Amazon Linux 2023 v8-11.3-devel 3:11.3.244.8-1.20.18.0.1.amzn2023.0.2 ALAS2023-2024-768

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs 20.14.0-5 —
Azure Linux 2 (CBL-Mariner) nodejs18 18.20.3-3 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 nodejs +3 1:18.20.4-1.module+el9.4.0+90400+35c5e203 ELSA-2024-6147, ELSA-2024-5815
Oracle Linux 9 nodejs-nodemon 3.0.1-1.module+el9.3.0+90066+12d4a8d7 ELSA-2024-6147, ELSA-2024-5815
Oracle Linux 9 nodejs-packaging +1 2021.06-4.module+el9.1.0+20762+f52d7401 ELSA-2024-6147, ELSA-2024-5815
Oracle Linux 9 npm 1:10.7.0-1.18.20.4.1.module+el9.4.0+90400+35c5e203 ELSA-2024-6147, ELSA-2024-5815
Oracle Linux 8 nodejs +3 1:18.20.4-1.module+el8.10.0+90402+68b79193 ELSA-2024-6148, ELSA-2024-5814
Oracle Linux 8 nodejs-nodemon 3.0.1-1.module+el8.9.0+90082+b6a613a6 ELSA-2024-6148, ELSA-2024-5814
Oracle Linux 8 nodejs-packaging +1 2021.06-4.module+el8.9.0+90082+b6a613a6 ELSA-2024-6148, ELSA-2024-5814
Oracle Linux 8 npm 1:10.7.0-1.18.20.4.1.module+el8.10.0+90402+68b79193 ELSA-2024-6148, ELSA-2024-5814

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-16 +1 No fix yet —
Wolfi rolling nodejs-18 18.20.4-r0 —
Wolfi rolling nodejs-20 20.15.1-r0 —
Wolfi rolling nodejs-22 22.4.1-r0 —

Advisories 33

References