typescript-development
Warn
Audited by Gen Agent Trust Hub on Apr 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/typescript-validator.jsutility script is vulnerable to command injection. It useschild_process.execSyncto run development tools (tsc, eslint, prettier, ts-prune) by interpolating thedirectoryvariable—which is derived directly from user-supplied command-line arguments—into shell command strings. Since the input is not sanitized or escaped, a malicious directory name containing shell metacharacters (e.g.,;,&&, or backticks) could lead to arbitrary command execution on the host system.
Audit Metadata