Skip to content

fix(security): require a verified email for GitLab sign-in and stop linking existing accounts by email - #850

Merged
fclairamb merged 5 commits into
mainfrom
fix/ghsa-c7jr-53g7-65q8
Nov 12, 2026
Merged

fclairamb merged 5 commits into
mainfrom
fix/ghsa-c7jr-53g7-65q8

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Advisory: GHSA-c7jr-53g7-65q8 (severity High)

What changed

  • GitLab sign-in now requires a confirmed email: confirmed_at on the profile and a confirmed primary entry in /api/v4/user/emails (fails closed). Otherwise EMAIL_NOT_VERIFIED.
  • A first GitLab sign-in whose email matches an existing account is no longer linked to it: it is refused with ACCOUNT_EXISTS_SIGN_IN_FIRST.
  • findOrCreateUser takes an explicit emailVerified flag; the account's verified date is set only after the checks.
  • Docs updated (authentication, GitLab section); tests run the real callback against a fake GitLab.
  • Batch gate: build, lint and tests green.

Decided by autopilot

  • Spec step 4 (notice to the account owner on linking) skipped: with no linking by email it has no caller.
  • CHANGELOG left to release-please.

Breaking behaviour: existing-account email matches on first GitLab sign-in are refused.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.46154% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.33%. Comparing base (e59310e) to head (64c2cc1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
server/internal/handlers/auth/gitlab_service.go 87.75% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #850      +/-   ##
==========================================
+ Coverage   89.28%   89.33%   +0.05%     
==========================================
  Files        1351     1351              
  Lines      138732   138760      +28     
==========================================
+ Hits       123860   123958      +98     
+ Misses      14863    14793      -70     
  Partials        9        9              
Files with missing lines Coverage Δ
server/internal/handlers/auth/github_service.go 78.80% <ø> (ø)
server/internal/handlers/auth/gitlab.go 90.56% <100.00%> (+0.36%) ⬆️
server/internal/handlers/auth/handler.go 89.52% <ø> (ø)
server/internal/handlers/auth/gitlab_service.go 84.07% <87.75%> (+3.16%) ⬆️

... and 24 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb and others added 4 commits November 12, 2026 07:41
…an existing account

GitLab sign-in now requires a confirmed GitLab account (confirmed_at on
/api/v4/user) and its primary email listed as confirmed on
/api/v4/user/emails. A first GitLab sign-in whose email matches an existing
SolidPing account is refused with ACCOUNT_EXISTS_SIGN_IN_FIRST instead of
being linked to it.

Security: GitLab sign-in could bind a GitLab identity to an existing
account, or create an account admitted by invitations and domain rules,
from an email the GitLab account never confirmed (GHSA-c7jr-53g7-65q8).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an account from an unverified email

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb added implemented Every spec of the PR is implemented and its batch gate was green automerge autorelease labels Nov 12, 2026
@fclairamb
fclairamb merged commit 1a0cea9 into main Nov 12, 2026
39 checks passed
@fclairamb
fclairamb deleted the fix/ghsa-c7jr-53g7-65q8 branch November 12, 2026 08:06
fclairamb added a commit that referenced this pull request Nov 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.48.0](v0.47.0...v0.48.0)
(2026-11-12)


### Features

* lease sizing, Telegram sign-in and four small fixes (2026-11-11
issues) ([#848](#848))
([9972dde](9972dde))
* **notifications:** SMS Factor integration
([#846](#846))
([1b68d2a](1b68d2a))


### Bug Fixes

* **deps:** update github.com/dop251/goja digest to f493a2b
([#842](#842))
([dba208b](dba208b))
* **deps:** update go dependencies (non-major)
([#844](#844))
([621d492](621d492))
* **deps:** update go dependencies (non-major)
([#847](#847))
([4bb06f7](4bb06f7))
* **security:** bind JS env and plugin configs, strict re-wrap keys,
replay masking of remaining secret inputs, rewrap list cap, secret
headers on redirects
([#851](#851))
([32fd560](32fd560))
* **security:** bind sealed secrets to their target, verify peer
re-wraps, drop deleted regions' keys, TLS-only agent server URL
([#840](#840))
([4b70e46](4b70e46))
* **security:** keep shown-once secrets out of dash0 session replay
([#839](#839))
([9bb8e8b](9bb8e8b))
* **security:** require a verified email for GitLab sign-in and stop
linking existing accounts by email
([#850](#850))
([1a0cea9](1a0cea9))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot autorelease implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant