doc: warn about unvalidated input in child_process · nodejs/node@c7378c4 · GitHub
Skip to content

Commit c7378c4

Browse files
Matthew GarrettMylesBorins
authored andcommitted
doc: warn about unvalidated input in child_process
child_process.exec*() and child_process.spawn*() (if options.shell is true) allow trivial arbitrary command execution if code passes unsanitised user input to it. Add warnings in the docs to make that clear. PR-URL: #10466 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 52edebc commit c7378c4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

doc/api/child_process.md

Lines changed: 16 additions & 0 deletions

0 commit comments

Comments
 (0)