Skip to content

fix(deps): take better-auth 1.7.7 for the sign-in advisories - #5061

Merged
yannickmonney merged 1 commit into
mainfrom
fix/better-auth-advisories
Oct 28, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/better-auth-advisories

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Why

GitHub published two advisories against better-auth on 2026-10-27, both fixed in 1.7.7. Since then the Security workflow (Bun audit and the Trivy filesystem scan) fails for every merge group and release candidate, which dequeued #5058 and #5057:

What

The better-auth family moves from 1.7.5 to 1.7.7 together, as its peer ranges require: better-auth, @better-auth/api-key, @better-auth/cimd, @better-auth/oauth-provider and @better-auth/passkey in the platform, better-auth and @better-auth/core in the CLI, and better-auth in the load harness. The 1.7.7 release needs no database migration. 1.7.6 adds PASSWORD_TOO_LONG before hashing for passwords over maxPasswordLength.

Verification

  • bun audit --prod --audit-level=high: exit 0 (no high or critical advisory left).
  • Typecheck of the platform and the CLI; bun run test of the platform (1,491 files, 90,399 tests); the CLI tests that use better-auth (222).
  • backend:integration lanes for sign-in, SSO, SAML, Entra, two-factor, password policy, organizations, sessions, API keys, OAuth apps and MCP discovery: 193/193.

GitHub published two advisories against better-auth on 2026-10-27, both
fixed in 1.7.7 and both failing the Security gate of every merge group
and release candidate:

- GHSA-965c-763c-88jm (critical): OAuth state can be used as a Magic Link
  to sign in as another user.
- GHSA-r4xp-prcw-77qf (high): the OAuth Proxy lets an attacker sign in as
  another user.

The whole family moves together (better-auth, @better-auth/api-key, cimd,
oauth-provider, passkey and core) in the platform, the CLI and the load
harness. 1.7.7 needs no database migration.
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 27, 2026
@yannickmonney
yannickmonney added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 06d04bb Oct 28, 2026
64 checks passed
@yannickmonney
yannickmonney deleted the fix/better-auth-advisories branch October 28, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant