Account Identity Collision via Unverified Email Overwrite on SSO Re-Login (userProvisioner)
Summary
Product and version tested
Outline, main branch, commit 6a09e9cf1da5c450c45684a459df5fe6f014e5b6 (2026-07-20), package.json version 1.9.1. Live-verified against a locally built instance from this exact source (Postgres + Redis via the project's own docker-compose.yml, migrated with `...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| otherOutline |
< 1.10.0→ 1.10.0 |
1.10.0 |
Original description The description as published by the source.
Product and version tested
Outline, main branch, commit 6a09e9cf1da5c450c45684a459df5fe6f014e5b6 (2026-07-20), package.json version 1.9.1. Live-verified against a locally built instance from this exact source (Postgres + Redis via the project's own docker-compose.yml, migrated with yarn db:migrate), not against any hosted/vendor infrastructure.
Description
server/commands/userProvisioner.ts has two separate code paths that can update a User row's email field during SSO login, and only one of them checks whether the identity provider actually verified that email:
-
New-user / match-by-email path (lines ~141-161): if no existing
UserAuthenticationmatches the external provider'sproviderId, the code looks up an existing user by email and explicitly refuses to attach an unverified email to it:if (emailVerified !== true && (existingUser || team?.allowedDomains.length)) { throw InvalidAuthenticationError( `Your email address has not been verified by ${providerName}...` ); }This check correctly treats both
falseandundefinedas "not verified," matching OIDC best practice. -
Existing-authentication / re-login path (lines ~94-131): when a
UserAuthenticationalready exists for the same externalproviderId(i.e., a user re-authenticating with an identity they've used before), the code takes a different branch that never reaches the check above:if (auth && authentication) {…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY outline/outline