Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Published By From Node.js News · 1 min read
SecurityMonday, July 8, 2024 Security Releases
Updates are now available for the 22.x, 20.x, 18.x Node.js release lines for the following issues.
The CVE-2024-27980 was identified as an incomplete fix for the BatBadBut vulnerability. This vulnerability arises from improper handling of batch files with all possible extensions on Windows via child_process.spawn / child_process.spawnSync . A malicious command line argument can inject arbitrary commands and achieve code execution even if the shell option is not enabled.
This vulnerability affects all users of child_process.spawn and child_process.spawnSync on Windows in all active release lines.
Thank you, to tianst for reporting this vulnerability and thank you RafaelGSS for fixing it.
A security flaw in Node.js allows a bypass of network import restrictions.
This is an excerpt. The full article is published by Node.js News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
A vulnerability has been identified in Node.js, affecting users of the experimental
permission model when the --allow-fs-write flag is used. Node.js Permission Model do not operate on file descriptors, however, operations such
as fs.fchown or fs.fchmod can use a "read-only" file descriptor to change the
owner and permissions of a file. This vulnerability affects all users using the experimental permission model in Node.js 20 and Node.js 22. Pleas
General
Updates are now available for the 22.x, 20.x, 18.x Node.js release lines for the
following issues.
General
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. Thank you, to dittyroma for reporting this vulnerabil
Benefits / Advantages
Updates are now available for the 22.x, 20.x, 18.x Node.js release lines for the following issues.
How It Works
The CVE-2024-27980 was identified as an incomplete fix for the BatBadBut vulnerability.
This vulnerability arises from improper handling of batch files with all
possible extensions on Windows via child_process.spawn / child_process.spawnSync.
A malicious command line argument can inject arbitrary commands and achieve code execution
even if the shell option is not enabled. This vulnerability affects all users of child_process.spawn and child_proce