CVE-2026-26830: Nodejs Child Process Exec Util Format Command Injection

A shell command string is constructed with util.format() and passed to child_process.exec() / execSync(), which executes via /bin/sh -c. util.format()'s %s/%d/%j interpolation does NOT shell-escape its arguments, so any value containing shell metacharacters (quotes, ;, &, |, $(), backticks) breaks out of the surrounding quoted token and lets attackers execut

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-26830-nodejs-child-process-exec-util-format-command-injection --engine opengrep

Description

A shell command string is constructed with util.format() and passed to child_process.exec() / execSync(), which executes via /bin/sh -c. util.format()'s %s/%d/%j interpolation does NOT shell-escape its arguments, so any value containing shell metacharacters (quotes, ;, &, |, $(), backticks) breaks out of the surrounding quoted token and lets attackers execut