CVE-2024-22020

nodejs: Bypass network import restriction via data URL

Published Jul 9, 2024 CVSS 3.1 · 6.5 Medium EPSS 1.1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5991-1 nodejs security update
EUVD EUVD EUVD-2024-19626 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.
History
Type Values Removed Values Added
Weaknesses CWE-94
Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
First Time appeared Nodejs
Nodejs nodejs
CPEs cpe:2.3:a:nodejs:nodejs:*:*:*:*:*:*:*:*
Vendors & Products Nodejs
Nodejs nodejs
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Apr 30, 2025, 10:25 PM
Reserved
Jan 4, 2024, 1:04 AM
Status
Deferred
Published
Jul 9, 2024, 2:15 AM
Modified
Jun 17, 2026, 7:10 AM
Severity
Moderate
Public date
Jul 9, 2024, 12:00 AM