Skip to content
Medium

Account Identity Collision via Unverified Email Overwrite on SSO Re-Login (userProvisioner)

GHSA-j99w-85jw-w4hx First seen on SecPulse

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

PackageAffected → Fixed
otherOutline
< 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:

  1. New-user / match-by-email path (lines ~141-161): if no existing UserAuthentication matches the external provider's providerId, 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 false and undefined as "not verified," matching OIDC best practice.

  2. Existing-authentication / re-login path (lines ~94-131): when a UserAuthentication already exists for the same external providerId (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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details