IMPORTANT! Update Node.JS to 18.20.4, 20.15.1, 22.4.1 or newer!
Older versions of Node.JS had a CVE-2024-22020 vulnerability, which involves embedding network imports in data:
URLs to execute arbitrary code.
The original vulnerability description (from Node.JS blog):
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.