fix(cli): escape executables in shell autocompletion to prevent command injection

This commit is contained in:
MD. MOHIBUR RAHMAN
2026-02-24 05:06:10 +06:00
parent c1d7bc4c8c
commit d6770d2ae9
@@ -432,7 +432,7 @@ export function useShellCompletion({
.slice(0, MAX_SHELL_SUGGESTIONS)
.map((cmd) => ({
label: cmd,
value: cmd,
value: escapeShellPath(cmd),
description: 'command',
}));
} else {