Commit 8eafb09
committed
fix(security): Replace execSync with execFileSync to prevent command injection in clang-format script
- Replace child_process.execSync() with execFileSync() to prevent potential shell injection
- Use array of arguments instead of string concatenation for safer command execution
- Addresses command injection vulnerability flagged by Semgrep
Fixes: JS-1502
Related: VULN-1095
Co-Authored-By: fix-it-felix-sentry[bot] <260785270+fix-it-felix-sentry[bot]@users.noreply.github.com>1 parent 82e89e5 commit 8eafb09
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
0 commit comments