CVEfocus › CVE database › CVE-2024-22020

CVE-2024-22020

CVSS 6.5 MediumEPSS 0.7% (higher than 46% of CVEs)Published 2024-07-09Updated 2025-04-30Assigner: hackerone

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.

CWE-94

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

46Fixed
1Fix pending
1Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 25.10nodejsNot affected
vulnerable_code_not_present
Ubuntu 24.04nodejsFix pendingUBUNTU-CVE-2024-22020
Debian 14nodejsFixed20.15.1+dfsg-1DEBIAN-CVE-2024-22020
Debian 13nodejsFixed20.15.1+dfsg-1DEBIAN-CVE-2024-22020
Debian 12nodejsFixed18.20.4+dfsg-1~deb12u1DEBIAN-CVE-2024-22020
Red Hat Enterprise Linux 10nodejs20Will not fix
Will not fix
Red Hat Enterprise Linux 9nodejsFixed1:20.16.0-1.module+el9.4.0+22197+9e60f127RHSA-2024:6147
Red Hat Enterprise Linux 9nodejs-develFixed1:20.16.0-1.module+el9.4.0+22197+9e60f127RHSA-2024:6147
Red Hat Enterprise Linux 9nodejs-docsFixed1:18.20.4-1.module+el9.4.0+22195+c221878eRHSA-2024:5815
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:18.20.4-1.module+el9.4.0+22195+c221878eRHSA-2024:5815
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.3.0+19762+d716bf3bRHSA-2024:5815
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.3.0+19518+63aad52dRHSA-2024:6147
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.3.0+19518+63aad52dRHSA-2024:6147
Red Hat Enterprise Linux 9npmFixed1:10.8.1-1.20.16.0.1.module+el9.4.0+22197+9e60f127RHSA-2024:6147
Red Hat Enterprise Linux 8nodejsFixed1:18.20.4-1.module+el8.10.0+22199+56ea0eadRHSA-2024:5814
Red Hat Enterprise Linux 8nodejs-develFixed1:18.20.4-1.module+el8.10.0+22199+56ea0eadRHSA-2024:5814
Red Hat Enterprise Linux 8nodejs-docsFixed1:20.16.0-1.module+el8.10.0+22203+a88c8310RHSA-2024:6148
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:20.16.0-1.module+el8.10.0+22203+a88c8310RHSA-2024:6148
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.10.0+21159+f5a7145dRHSA-2024:5814
Red Hat Enterprise Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2024:6148
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.9.0+19439+7b18b275RHSA-2024:5814
Red Hat Enterprise Linux 8npmFixed1:10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310RHSA-2024:6148
AlmaLinux 9nodejsFixed1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:6147
AlmaLinux 9nodejs-develFixed1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:6147
AlmaLinux 9nodejs-docsFixed1:18.20.4-1.module_el9.4.0+112+bb28ff81ALSA-2024:5815
AlmaLinux 9nodejs-full-i18nFixed1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:6147
AlmaLinux 9nodejs-nodemonFixed3.0.1-1.module_el9.2.0+36+853e48f5ALSA-2024:5815
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:5815
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:5815
AlmaLinux 9npmFixed1:10.8.1-1.20.16.0.1.module_el9.4.0+107+dbd477e4ALSA-2024:6147
AlmaLinux 8nodejsFixed1:20.16.0-1.module_el8.10.0+3882+e12e42dbALSA-2024:6148
AlmaLinux 8nodejs-develFixed1:18.20.4-1.module_el8.10.0+3890+5a092792ALSA-2024:5814
AlmaLinux 8nodejs-docsFixed1:18.20.4-1.module_el8.10.0+3890+5a092792ALSA-2024:5814
AlmaLinux 8nodejs-full-i18nFixed1:18.20.4-1.module_el8.10.0+3890+5a092792ALSA-2024:5814
AlmaLinux 8nodejs-nodemonFixed3.0.1-1.module_el8.9.0+3731+490e3ce5ALSA-2024:6148
AlmaLinux 8nodejs-packagingFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:5814
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.9.0+3775+d8460d35ALSA-2024:6148
AlmaLinux 8npmFixed1:10.7.0-1.18.20.4.1.module_el8.10.0+3890+5a092792ALSA-2024:5814
Rocky Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2024:6147
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2024:5815
Rocky Linux 8nodejsFixed1:20.16.0-1.module+el8.10.0+1856+4cdb8df5RLSA-2024:6148
Rocky Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2024:6148
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2024:5814
Alpine Linux 3.24nodejsFixed20.15.1-r0ALPINE-CVE-2024-22020
Alpine Linux 3.23nodejsFixed20.15.1-r0ALPINE-CVE-2024-22020
Alpine Linux 3.22nodejsFixed20.15.1-r0ALPINE-CVE-2024-22020
Alpine Linux 3.21nodejsFixed20.15.1-r0ALPINE-CVE-2024-22020
Alpine Linux 3.20nodejsFixed20.15.1-r0ALPINE-CVE-2024-22020
Alpine Linux 3.19nodejsFixed20.15.1-r0ALPINE-CVE-2024-22020

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.