Skip to content

Conversation

yaacovCR
Copy link
Contributor

@yaacovCR yaacovCR commented Jul 8, 2025

spawn with shell: true and arguments leads to the below deprecation warning

[DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.

This does not appear to presently cause us any security concerns as this is used only with safe input from our own integration scripts, but we can avoid the use of the shell entirely and protect from removal of this functionality in a later version, while still preserving win32 compatibility.

spawn with shell: true and arguments leads to the below deprecation warning

[DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.

This does not appear to presently cause us any security concerns as this is used only with safe input from our own integration scripts, but we can avoid the use of the shell entirely and protect from removal of this functionality in a later version, while still preserving win32 compatibility.
@yaacovCR yaacovCR requested a review from a team as a code owner July 8, 2025 19:12
@yaacovCR yaacovCR merged commit 4ebcb8d into graphql:next Jul 13, 2025
16 checks passed
@yaacovCR yaacovCR deleted the use-win-cmd branch July 13, 2025 17:17
yaacovCR added a commit to yaacovCR/graphql-js that referenced this pull request Jul 30, 2025
spawn with shell: true and arguments leads to the below deprecation
warning

[DEP0190] DeprecationWarning: Passing args to a child process with shell
option true can lead to security vulnerabilities, as the arguments are
not escaped, only concatenated.

This does not appear to presently cause us any security concerns as this
is used only with safe input from our own integration scripts, but we
can avoid the use of the shell entirely and protect from removal of this
functionality in a later version, while still preserving win32
compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant