Pin SSO setup identity link to the authenticated session

fix(auth): Pin SSO setup identity link to the authenticated session (#113720)
Pin SSO setup identity link to the authenticated session0c6755-fix-pin-sso-setup-identity-link-to-cve-2026-42354fixpin sso setup identity link authenticated

Committed by michelletran-sentry

commit message
fix(auth): Pin SSO setup identity link to the authenticated session (#113720)

During SSO provider setup, override the IdP assertion email with the
authenticated user's email so that resolve_email_to_user consistently
returns the admin performing setup.
 
 
### Legal Boilerplate
 
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
 
Co-authored-by: Claude <[email protected]>

Editor assessment

This commit patches CVE-2026-42354. The subject names the fix and the auth scope accurately: SSO setup can no longer bind an identity link to anyone but the authenticated session. The body explains the mechanism in a single sentence, overriding the IdP assertion email with the authenticated user's email so resolve_email_to_user consistently returns the admin running setup. That is enough to understand the intended invariant, though it does not name the account-takeover scenario it prevents. The required legal boilerplate and co-author trailer are conventional for this repository and do not read as junk. Compact and correct, it is a good example held just short of the top by its brevity.

Browse categories

More fix examples · Back to search