cve.bz

CVE-2024-22020 nodejs node: Code Injection

6.5 mediumEPSS 1.1%

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

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

Severity

CVSS 3.0

6.5 medium
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th 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: total, assessed 2024-07-13. 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-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-22020 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-22020?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-22020?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-2024-22020 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 4.0 before 4.*
NodeJS Nodefrom 5.0 before 5.*
NodeJS Nodefrom 6.0 before 6.*
NodeJS Nodefrom 7.0 before 7.*
NodeJS Nodefrom 8.0 before 8.*
NodeJS Nodefrom 9.0 before 9.*
NodeJS Nodefrom 10.0 before 10.*
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.*
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 14.0 before 14.*
NodeJS Nodefrom 15.0 before 15.*
NodeJS Nodefrom 16.0 before 16.*
NodeJS Nodefrom 17.0 before 17.*
NodeJS Nodefrom 18.0 before 18.20.4
NodeJS Nodefrom 19.0 before 19.*
NodeJS Nodefrom 20.0 before 20.15.1
NodeJS Nodefrom 21.0 before 21.*
NodeJS Nodefrom 22.0 before 22.4.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nodejs18.20.4+dfsg-1~deb12u1DEBIAN-CVE-2024-22020 DSA-5991-1
Debian13, 14nodejs20.15.1+dfsg-1DEBIAN-CVE-2024-22020
Ubuntu24.04:LTSnodejsno fix listedUBUNTU-CVE-2024-22020
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.20.4-1.module+el8.10.0+22199+56ea0eadRHSA-2024:6148
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:20.16.0-1.module+el8.10.0+22203+a88c8310RHSA-2024:5814
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.10.0+21159+f5a7145dRHSA-2024:6148
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.9.0+20473+c4e3d824RHSA-2024:5814
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.9.0+19439+7b18b275RHSA-2024:6148
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2024:5814
Red Hatenterprise_linux:8::appstreamnpm1:10.7.0-1.18.20.4.1.module+el8.10.0+22199+56ea0eadRHSA-2024:6148
Red Hatenterprise_linux:8::appstreamnpm1:10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310RHSA-2024:5814
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.20.4-1.module+el9.4.0+22195+c221878eRHSA-2024:6147
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:20.16.0-1.module+el9.4.0+22197+9e60f127RHSA-2024:5815
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:3.0.1-1.module+el9.3.0+19762+d716bf3bRHSA-2024:6147
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:3.0.1-1.module+el9.3.0.z+20478+84a9f781RHSA-2024:5815
4 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.20.4-8.24.1SUSE-SU-2024:2496-1
SUSELinux Enterprise Module for Web and Scripting 15 SP5nodejs1818.20.4-150400.9.24.2SUSE-SU-2024:2542-1
SUSELinux Enterprise Module for Web and Scripting 15 SP5nodejs2020.15.1-150500.11.12.2SUSE-SU-2024:2543-1
SUSELinux Enterprise Module for Web and Scripting 15 SP6nodejs2020.15.1-150600.3.3.2SUSE-SU-2024:2574-1
openSUSELeap 15.5nodejs1818.20.4-150400.9.24.2SUSE-SU-2024:2542-1
openSUSELeap 15.5nodejs2020.15.1-150500.11.12.2SUSE-SU-2024:2543-1
openSUSELeap 15.6nodejs2020.15.1-150600.3.3.2SUSE-SU-2024:2574-1
openSUSETumbleweednodejs2020.15.1-1.1openSUSE-SU-2024:14214-1
openSUSETumbleweednodejs2222.10.0-1.1openSUSE-SU-2024:14435-1
openSUSETumbleweednodejs2424.11.1-2.1openSUSE-SU-2025:15802-1
openSUSETumbleweednodejs2626.3.1-1.1openSUSE-SU-2026:11110-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.20.4-1.module_el8.10.0+3890+5a092792ALSA-2024:6148
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:20.16.0-1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2024:6148
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.9.0+3731+490e3ce5ALSA-2024:5814
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:6148
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.9.0+3775+d8460d35ALSA-2024:5814
AlmaLinux8npm1:10.7.0-1.18.20.4.1.module_el8.10.0+3890+5a092792ALSA-2024:6148
AlmaLinux8npm1:10.8.1-1.20.16.0.1.module_el8.10.0+3882+e12e42dbALSA-2024:5814
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.20.4-1.module_el9.4.0+112+bb28ff81ALSA-2024:6147
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:20.16.0-1.module_el9.4.0+107+dbd477e4ALSA-2024:5815
AlmaLinux9nodejs-nodemon3.0.1-1.module_el9.2.0+36+853e48f5ALSA-2024:6147
AlmaLinux9nodejs-nodemon3.0.1-1.module_el9.3.0+47+c33bc288ALSA-2024:5815
4 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:18.20.4-1.module+el8.10.0+1865+67d146caRLSA-2024:6148
Rocky Linux8nodejs1:20.16.0-1.module+el8.10.0+1856+4cdb8df5RLSA-2024:5814
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2024:5814 RLSA-2024:6148
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.10.0+1667+4a788d89RLSA-2024:5814 RLSA-2024:6148
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.5.0+31770+0da7192dRLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32144+1d29a396RLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32322+a8b1fd01RLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2024:5815 RLSA-2024:6147
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2024:5815 RLSA-2024:6147
5 more for Rocky Linux in the JSON.
Alpinev3.19, v3.20, v3.21 and 3 morenodejs20.15.1-r0ALPINE-CVE-2024-22020
Azure Linux2nodejs1818.20.3-3AZL-43216
Azure Linux3nodejs20.14.0-5AZL-43195
Alpaquita23nodejs18.20.4-r0BELL-CVE-2024-22020
Alpaquitastreamnodejs20.15.1-r0BELL-CVE-2024-22020
BellSoft Hardened Containers23nodejs18.20.4-r0BELL-CVE-2024-22020
BellSoft Hardened Containersstreamnodejs20.15.1-r0BELL-CVE-2024-22020

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; Microsoft's Azure Linux vulnerability data, MIT; 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 vulnerability is categorized as moderate severity rather than high due to its specific conditions for exploitation and impact scope. While the flaw permits bypassing network import restrictions via data URLs to execute arbitrary code, its exploitation is contingent on the attacker’s ability to inject and execute code within a controlled environment. The impact is constrained to scenarios where the vulnerable application processes data URLs and lacks robust validation mechanisms. Additionally, this issue requires the attacker to exploit specific code paths and permissions, which limits its widespread applicability.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:20-8100020240808073736.489197e6Fixed 2024-08-26RHSA-2024:5814
Red Hat Enterprise Linux 8nodejs:18-8100020240807161023.489197e6Fixed 2024-09-03RHSA-2024:6148
Red Hat Enterprise Linux 9nodejs:20-9040020240807145403.rhel9Fixed 2024-08-26RHSA-2024:5815
Red Hat Enterprise Linux 9nodejs:18-9040020240807131341.rhel9Fixed 2024-09-03RHSA-2024:6147
Red Hat Enterprise Linux 10nodejs20Will not fix

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-2024-22020.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection 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