CodeQL library for JavaScript/TypeScript
codeql/javascript-all 3.0.2 (changelog, source)
Search

Predicate UnsafeShellCommandConstruction::executesArrayAsShell

Holds if the arguments array given to sys is joined as a string because the shell option is enabled.

Import path

import semmle.javascript.security.dataflow.UnsafeShellCommandConstructionCustomizations
predicate executesArrayAsShell(SystemCommandExecution sys)