You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using child_process.spawnSync() with an Array of arguments, I’m getting this warning:
DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
I don’t see a simple way around that:
Command and arguments are passed to my function as an Array.
I can do my own concatenation but how is that any better than what Node.js is doing?
If I set shell:false then, e.g., I can’t invoke npx <some-package>.
Minimal Reproduction
No response
Output
No response
Before You Submit
I have looked for issues that already exist before submitting this