Fetch private GitHub emails; drop unverified Google emails

fix(oauth): fetch private GitHub emails; drop unverified Google emails
Fetch private GitHub emails; drop unverified Google emails8c67df-fix-fetch-private-github-emails-drop-unverified-cve-2026-136165fixfetch private github emails drop unverified

Committed by mattwoberts

commit message
fix(oauth): fetch private GitHub emails; drop unverified Google emails

GitHub's /user only returns the public email, so most GitHub sign-ins
created users with no email. Fall back to the primary verified address
from /user/emails. Google emails without verified_email are dropped.
 
Existing users with no email get the provider email on next sign-in,
unless another user already has it.
 
Fixes #1761
 
Co-Authored-By: Claude Opus 5.5 <[email protected]>

Editor assessment

This commit patches CVE-2026-136165. Clear and well scoped. The body explains the cause - GitHub's /user returns only the public address, so most sign-ins created users with no email - and the fix: fall back to the primary verified address from /user/emails and drop Google addresses that are not verified. It also covers the existing-user backfill and its collision rule, with a valid Fixes footer. The compound subject with a semicolon is the only stylistic wrinkle; the reasoning is complete. Only a note on why a semicolon separates the two changes would improve the framing.

Browse categories

More fix examples · Back to search