Gemini CLI fixes SSRF vulnerability with enhanced DNS validation and SNI preservation
diegogodinezr · ghdev · 2026-08-29
This PR enhances security in WebFetchTool by improving destination address validation and connection routing. Key changes include asynchronous DNS resolution with validation of all returned IPs, filtering private or reserved ranges (e.g., RFC 1918, loopback), and implementing transport layer connection pinning via Undici to bind directly to resolved IPs. It preserves TLS SNI to ensure proper HTTPS handshakes and adopts a fail-closed approach to prevent DNS rebinding or SSRF attacks.
More from Infra
- Notes on 'Looking Back at Postgres': Extensibility, No WAL, Open Source — sh_reya · 2026-11-30
- NRDC concedes BAAJA makes data centers pay grid costs, countering 'giveaway' claim — zacharynado · 2026-11-30
- NIDO 0.1.131: A Fully Offline Phone AI Assistant With No Account, No Cloud, No Analytics — NIDO_007 · 2026-11-30
- Ibiden to spend ~¥2T on four new plants as AI chip substrate demand extends past 2030 — BenBajarin · 2026-11-30
- Simulated FP64 matmul runs 83x faster than native on NVIDIA B300, ETH Zurich paper shows — JiliJeanlouis · 2026-11-30
- 10 open-source repos to slash your AI agent's token bill, from LiteLLM to GPTCache — victor_explore · 2026-11-30