gemini-cli fix patches auth bypass exposing five A2A server routes without credentials

freedom2132 · ghdev · 2026-11-24

PR #30449 in google-gemini/gemini-cli fixes an authentication bypass in the A2A server: five routes mounted directly on the express app (POST /tasks, POST /executeCommand, GET /listCommands, plus two metadata routes) were reachable without credentials after setupRoutes() wired auth only to SDK routes. The fix adds a requireAuthentication middleware reusing the same customUserBuilder, returning 401 for unauthenticated requests, with 7 new tests. A follow-up issue tracks replacing hardcoded demo credentials with env-supplied or startup-generated ones.

Original post →

More from coding & agent

coding & agent channel →