CVE-2026-2178: Os Command Injection Dynamic Exec

Detected a dynamically constructed command string passed to `exec`. This can lead to OS command injection if the input is untrusted. Ensure that user input is properly sanitized, or preferably use `execFile` or `spawn` with an array of distinct arguments instead of a shell string.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-2178-os-command-injection-dynamic-exec --engine opengrep

Description

Detected a dynamically constructed command string passed to `exec`. This can lead to OS command injection if the input is untrusted. Ensure that user input is properly sanitized, or preferably use `execFile` or `spawn` with an array of distinct arguments instead of a shell string.