security: validate localPath in uploadFile() and harden runServer() in gcp.ts (#2524)

Fixes #2521 - Add path traversal and argument injection protection for localPath
Fixes #2522 - Add validation for cmd parameter before SSH execution

Agent: security-auditor

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-12 01:50:56 -07:00 committed by GitHub
parent 5b5e7d4706
commit 7278638a31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.16.15",
"version": "0.16.16",
"type": "module",
"bin": {
"spawn": "cli.js"