mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
Fixes #3019 Replace `grep -qx` with `grep -qxF` in the `ensure_in_path` function to prevent regex pattern injection. Without -F, attacker-controlled SPAWN_INSTALL_DIR or BUN_INSTALL env vars containing regex metacharacters (e.g. `/.*`) could cause false positive/negative PATH matches, potentially bypassing the symlink creation logic. Agent: issue-fixer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| install.ps1 | ||
| install.sh | ||