Skip to content
Fencer Vulns
medium 6.5

CVE-2024-22020 json

A security flaw in Node.js allows a bypass of network import restrictions.

published 2024-07-09 2 y ago modified 2026-06-17 4 mo ago also BIT-node-2024-22020 , BIT-node-min-2024-22020 , EUVD-2024-19626

cvss
6.5
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.1%
EPSS 1.1% chance of exploitation in 30 days, percentile 65%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami node 18.20.4, 20.15.1, 22.4.1
  • bitnami node-min 18.20.5, 20.18.1, 22.12.0
  • NodeJS Node 18.20.4, 20.15.1, 22.4.1
  • nodejs Debian 12 18.20.4+dfsg-1~deb12u1
  • nodejs Debian 14, Debian 13 20.15.1+dfsg-1

debian advisories DEBIAN-CVE-2024-22020

  • npm RHEL 9 1:10.7.0-1.18.20.4.1.module+el9.4.0+22195+c221878e
  • nodejs RHEL 9 1:18.20.4-1.module+el9.4.0+22195+c221878e
  • nodejs-nodemon RHEL 9 3.0.1-1.module+el9.3.0+19762+d716bf3b
  • nodejs-full-i18n RHEL 9 1:18.20.4-1.module+el9.4.0+22195+c221878e
  • nodejs-packaging RHEL 9 2021.06-4.module+el9.1.0+15718+e52ec601
  • nodejs-packaging-bundler RHEL 9 2021.06-4.module+el9.1.0+15718+e52ec601
  • npm RHEL 8 1:10.7.0-1.18.20.4.1.module+el8.10.0+22199+56ea0ead
  • nodejs RHEL 8 1:18.20.4-1.module+el8.10.0+22199+56ea0ead

red hat advisories RHSA-2024:6147RHSA-2024:6148RHSA-2024:5814RHSA-2024:5815

  • nodejs20 SLE Module for Web and Scripting 15 SP6, openSUSE Leap 15.6 20.15.1-150600.3.3.2
  • nodejs20 SLE Module for Web and Scripting 15 SP5, openSUSE Leap 15.5 20.15.1-150500.11.12.2
  • nodejs18 SLE Module for Web and Scripting 15 SP5, openSUSE Leap 15.5 18.20.4-150400.9.24.2
  • nodejs18 SLE Module for Web and Scripting 12 18.20.4-8.24.1

suse advisories SUSE-SU-2024:2574-1SUSE-SU-2024:2543-1SUSE-SU-2024:2542-1SUSE-SU-2024:2496-1

  • nodejs26 openSUSE Tumbleweed 26.3.1-1.1
  • nodejs24 openSUSE Tumbleweed 24.11.1-2.1
  • nodejs22 openSUSE Tumbleweed 22.10.0-1.1
  • nodejs20 openSUSE Tumbleweed 20.15.1-1.1

opensuse advisories openSUSE-SU-2026:11110-1openSUSE-SU-2025:15802-1openSUSE-SU-2024:14435-1openSUSE-SU-2024:14214-1

  • npm AlmaLinux 9 1:10.7.0-1.18.20.4.1.module_el9.4.0+112+bb28ff81
  • nodejs AlmaLinux 9 1:18.20.4-1.module_el9.4.0+112+bb28ff81
  • nodejs-nodemon AlmaLinux 9 3.0.1-1.module_el9.2.0+36+853e48f5
  • nodejs-full-i18n AlmaLinux 9 1:18.20.4-1.module_el9.4.0+112+bb28ff81
  • nodejs-packaging AlmaLinux 9 2021.06-4.module_el9.1.0+13+d9a595ea
  • nodejs-packaging-bundler AlmaLinux 9 2021.06-4.module_el9.1.0+13+d9a595ea
  • npm AlmaLinux 8 1:10.7.0-1.18.20.4.1.module_el8.10.0+3890+5a092792
  • nodejs AlmaLinux 8 1:18.20.4-1.module_el8.10.0+3890+5a092792

almalinux advisories ALSA-2024:6147ALSA-2024:6148ALSA-2024:5814ALSA-2024:5815

  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32322+a8b1fd01
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.5.0+31770+0da7192d
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32045+2e5d342d
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32143+ae966e5b
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32144+1d29a396
  • nodejs-nodemon Rocky Linux 9 3.0.1-1.module+el9.6.0+32185+bd121a25
  • nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.5.0+31770+0da7192d
  • nodejs-packaging Rocky Linux 9 2021.06-4.module+el9.6.0+32045+2e5d342d

rocky linux advisories RLSA-2024:5815RLSA-2024:6147RLSA-2024:5814RLSA-2024:6148

  • nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 20.15.1-r0

alpine advisories ALPINE-CVE-2024-22020

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • nodejs Azure Linux 3.0 20.14.0-5
  • nodejs18 CBL-Mariner 2.0 18.20.3-3

azure linux advisories AZL-43195AZL-43216

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-22020 updated cvss 6.5

nodejs: Bypass network import restriction via data URL

  • Red Hat Enterprise Linux 10 nodejs20
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 18.20.4-1.module+el8.10.0+22199+56ea0ead, nodejs 20.16.0-1.module+el8.10.0+22203+a88c8310, nodejs-nodemon 3.0.1-1.module+el8.9.0+20473+c4e3d824, nodejs-nodemon 3.0.1-1.module+el8.10.0+21159+f5a7145d, npm 10.7.0-1.18.20.4.1.module+el8.10.0+22199+56ea0ead, npm 10.8.1-1.20.16.0.1.module+el8.10.0+22203+a88c8310, +6 more
    fixed: vendor fix RHSA-2024:6148
  • Red Hat Enterprise Linux AppStream (v. 9) nodejs 18.20.4-1.module+el9.4.0+22195+c221878e, nodejs 20.16.0-1.module+el9.4.0+22197+9e60f127, nodejs-nodemon 3.0.1-1.module+el9.3.0+19762+d716bf3b, npm 10.7.0-1.18.20.4.1.module+el9.4.0+22195+c221878e, npm 10.8.1-1.20.16.0.1.module+el9.4.0+22197+9e60f127, nodejs-nodemon 3.0.1-1.module+el9.3.0.z+20478+84a9f781, +6 more
    fixed: vendor fix RHSA-2024:6147

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.10% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 6.5 CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H
OSV 3.0 6.5 CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami node
<18.20.4
>=19.0.0, <20.15.1
>=21.0.0, <22.4.1
18.20.4
20.15.1
22.4.1
bitnami node-min
<18.20.5
>=19.0.0, <20.18.1
>=21.0.0, <22.12.0
18.20.5
20.18.1
22.12.0

Affected products

  • NodeJS Node
  • nodejs nodejs

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.