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.js utility script is vulnerable to command injection. It uses child_process.execSync to run development tools (tsc, eslint, prettier, ts-prune) by interpolating the directory variable—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
Risk Level
MEDIUM
Analyzed
Apr 9, 2026, 06:28 PM