Category

Execsync

Security vulnerabilities and automated fixes for execsync issues

3 posts found

high4 min

How command injection happens in Node.js child_process and how to fix it

A critical command injection vulnerability in `scripts/check-links.js` was fixed by replacing `execSync()` with `execFileSync()`, eliminating shell interpretation of user-controlled repository names. This proactive hardening prevents potential remote code execution in the GitHub CLI integration workflow.

#command-injection#nodejs#child-process+3 more
A
anupamme
Sep 7, 2026
high6 min

How Command Injection happens in Node.js with child_process and how to fix it

A high-severity command injection vulnerability in `gateway-workflow-dispatcher-v2.js` allowed arbitrary command execution through unsanitized input passed to `execSync`. The fix replaces `execSync` with `execFileSync`, eliminating shell interpretation and preventing attackers from injecting malicious commands through the `eventText` parameter.

#command-injection#nodejs#child-process+3 more
A
anupamme
Aug 31, 2026
critical6 min

How command injection via execSync() happens in Node.js CLI tools and how to fix it

A critical command injection vulnerability was discovered in `packages/core/bin/cli.js` where the `copyToClipboard` function used `execSync()` with shell command strings. Combined with insufficient filename sanitization in the cache functions, an attacker could inject arbitrary shell commands through malicious repository data containing shell metacharacters. The fix replaces `execSync()` with `execFileSync()` and tightens input sanitization on cache file paths.

#command-injection#nodejs#execsync+4 more
A
anupamme
Jul 28, 2026