CVE-2026-26831: Textract Cve 2026 26831 Shell Injection Incomplete Path Escape

File path sanitized only by whitespace escaping (replace(/\s/g, '\\ ')) flows into child_process.exec(). Shell metacharacters such as ;, |, &, backticks, $(), ", ' are NOT neutralized, enabling OS command injection through attacker-controlled filenames (CVE-2026-26831). Use child_process.execFile()/spawn() with an argument array, or apply complete shell quot

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-26831-textract-cve-2026-26831-shell-injection-incomplete-path-escape --engine opengrep

Description

File path sanitized only by whitespace escaping (replace(/\s/g, '\\ ')) flows into child_process.exec(). Shell metacharacters such as ;, |, &, backticks, $(), ", ' are NOT neutralized, enabling OS command injection through attacker-controlled filenames (CVE-2026-26831). Use child_process.execFile()/spawn() with an argument array, or apply complete shell quot