Node.js Network Import Bypass Vulnerability - ALPINE-CVE-2024-22020

nodejs Updated 02 Oct 2025

Summary

09/07/2024
N/A
Yes i
Unrated
Not published

ALPINE-CVE-2024-22020: A security flaw in Node.js allows a bypass of network import restrictions. Affects nodejs versions < 20.15.1-r0. Fixed in 20.15.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Node.js is a popular open-source runtime environment that allows developers to execute JavaScript code server-side. It is widely used for building scalable network applications. The specific vulnerability in question affects the Node.js package in Alpine Linux versions 3.19 to 3.22, allowing attackers to bypass network import restrictions, which can lead to severe security risks.

Vulnerability Detail

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. This vulnerability has been verified across various platforms and poses a significant risk to developers and servers by violating network import security.

How To Fix

Minimum fixed version

20.15.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid using data URLs in network imports until the package is updated. This can help mitigate the risk of exploitation while you prepare to apply the patch.

Conclusion

The Node.js network import bypass vulnerability (ALPINE-CVE-2024-22020) poses significant risks to applications using affected versions of Node.js in Alpine Linux. It is crucial to update to the patched version to ensure system security and prevent potential exploitation.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

The vulnerability allows attackers to bypass network import restrictions by using data URLs, which can lead to arbitrary code execution.

The vulnerability affects Node.js in Alpine Linux versions 3.19, 3.20, 3.21, and 3.22.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to arbitrary code execution, compromising the security of the system and potentially allowing attackers to gain control.

Yes, the permanent fix is to update the Node.js package to version 20.15.1-r0, which mitigates the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

20.15.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback