mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-12 22:40:24 +00:00
Defense-in-depth: explicitly shellQuote(cmd) inside runServer() so the cmd parameter is always protected by single-quote escaping, regardless of how the surrounding command string is constructed. Previously, cmd was interpolated raw into fullCmd before the outer shellQuote() wrapper. While the outer wrapper did protect it, this made the safety non-obvious and fragile against future refactors. The new pattern matches interactiveSession() where cmd gets its own shellQuote() call. Fixes #2859 Agent: security-auditor Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| shared | ||