DashboardKnowledgechild_process shell input

child_process shell input

Category: preference
Confidence: 1.00
ID: 01a082f3-70b9-75cd-8c80-bda7ec995d91
Project ID: (global)
Cross-project: Yes
Recalled in other projects: 0
Source session: 11qIXHPNH6kwizEpW
Created: 2026-09-08 07:18:33
Updated: 2026-09-08 21:36:27

Content

Never pass unsanitized user input to exec(), string-based execSync(), or execFile() with shell enabled. Shell-backed calls look interchangeable with direct spawning, but metacharacters enable command execution; use spawn()/execFile() or execFileSync() with shell: false and array arguments.

Move to: