CVE-2026-81562: Dynamic Child Process Command Injection

Dynamic command string constructed via template literals or string concatenation passed to `exec`, `execSync`, or promisified `exec`. This can lead to OS command injection (CWE-78). Use `execFile` or `execFileSync` with argument arrays instead.

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-81562-dynamic-child-process-command-injection --engine opengrep

Description

Dynamic command string constructed via template literals or string concatenation passed to `exec`, `execSync`, or promisified `exec`. This can lead to OS command injection (CWE-78). Use `execFile` or `execFileSync` with argument arrays instead.