Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.command-injection.spawn-shell

spawn/execFile invoked with shell: true and a non-literal command. The command is interpreted by a shell, which enables command injection.

Last updated:

Suite: Security

javascript, typescript

spawn/execFile invoked with shell: true and a non-literal command. The command is interpreted by a shell, which enables command injection.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Drop shell: true and pass arguments as an array.

References

Source: packages/engine/rules/sast/javascript.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.