Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Node.js CVE-2024-27980 #21

Open
SQLkiwi opened this issue Oct 11, 2024 · 0 comments
Open

Update for Node.js CVE-2024-27980 #21

SQLkiwi opened this issue Oct 11, 2024 · 0 comments

Comments

@SQLkiwi
Copy link

SQLkiwi commented Oct 11, 2024

Please update in light of the April 2024 Node.js security patch Command injection via args parameter of child_process.spawn without shell option enabled on Windows (CVE-2024-27980).

It is important to note that there has been a breaking change for Windows users who utilize child_process.spawn and child_process.spawnSync. Node.js will now error with EINVAL if a .bat or .cmd file is passed to child_process.spawn and child_process.spawnSync without the shell option set. If the input to spawn/spawnSync is sanitized, users can now pass { shell: true } as an option to prevent the occurrence of EINVALs errors.

Until {shell: true} is passed as an option, the childProcess.spawnSync call in index.js will encounter error EINVAL and return null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant