Repository navigation
fix(deps): take better-auth 1.7.7 for the sign-in advisories - #5061
Merged
Merged
Conversation
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
enabled auto-merge
October 27, 2026 23:20
yannickmonney
added this pull request to the merge queue
Oct 27, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 27, 2026
yannickmonney
added this pull request to the merge queue
Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
GitHub published two advisories against
better-authon 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-providerand@better-auth/passkeyin the platform,better-authand@better-auth/corein the CLI, andbetter-authin the load harness. The 1.7.7 release needs no database migration. 1.7.6 addsPASSWORD_TOO_LONGbefore hashing for passwords overmaxPasswordLength.Verification
bun audit --prod --audit-level=high: exit 0 (no high or critical advisory left).bun run testof the platform (1,491 files, 90,399 tests); the CLI tests that use better-auth (222).backend:integrationlanes for sign-in, SSO, SAML, Entra, two-factor, password policy, organizations, sessions, API keys, OAuth apps and MCP discovery: 193/193.