gemini-cli PR fixes hardcoded creds, trust bypass and path traversal in a2a-server

ugorla-dev · ghdev · 2026-11-23

PR #30417 on google-gemini/gemini-cli hardens the @google/gemini-cli-a2a-server against three vulnerabilities: it enforces Bearer-token auth (read from GEMINIIPCSECRET or CODERAGENTAUTHTOKEN before loadEnvironment() so workspace .env can't override it) plus localhost Host/Origin validation across all HTTP/JSON-RPC and REST endpoints, removing hardcoded credentials; it strips client-supplied isTrusted and normalizes workspacePath in createTask(); and it prevents path traversal in checkpoint restore via path.resolve. Roughly +242/−55 lines across 7 files.

Original post →

More from coding & agent

coding & agent channel →