Finding / gemini-cli

2026-10-24-gemini-cli-stable-hardens-the-github-extension-json-downloader

Stable hardens the GitHub extension JSON downloader. The old JSON helper attached GITHUB_TOKEN to each requested URL, including recursively followed redirect destinations, and did not validate destinations itself. Stable 0.65.0 restricts that token to HTTPS github.com or its subdomains, validates each destination, and supplies safeLookup to check the addresses used by the socket. It sets a 30-second request timeout and rejects invalid JSON, aborted/incomplete responses and redirect lifecycle failures through the promise. The commit diff and tagged code were read as data, never executed.

Channel: tagged-release. Half: both. Date: 2026-10-20.

Operator consequence: Upgrade extension-installation flows using GITHUB_TOKEN to stable 0.65.0. Test redirect destinations, private-host refusals and malformed or aborted responses. This narrows credential forwarding and adds bounded failure handling; it does not repair the separate unchecked FETCH_HEAD commit-pin path. No hosted token exfiltration, credential leak or advisory identifier was reproduced or assigned here.

Receipt

Finding metadata

Run: 2026-10-24-weekly-digest-2026-10-13_2026-10-24-frontier-v0

Finding ID: 2026-10-24-gemini-cli-stable-hardens-the-github-extension-json-downloader

Profile citations

Source links

Primary links, including exact changelog lines when available.