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

Refactor npm command in GeneratorAcquisition to support nodeJs Security Update #1049

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

amitjoshi438
Copy link
Contributor

@amitjoshi438 amitjoshi438 commented Oct 18, 2024

#1018

The error was caused by a security update in Node.js. https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high

From that blog:

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.

@amitjoshi438 amitjoshi438 requested review from a team as code owners October 18, 2024 11:49
@amitjoshi438 amitjoshi438 merged commit 436800d into main Oct 18, 2024
6 checks passed
@amitjoshi438 amitjoshi438 deleted the users/amitjoshi/nodeJsSecurityUpdateFixForYoGen branch October 18, 2024 12:06
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

Successfully merging this pull request may close these issues.

3 participants