Repository navigation
fix(security): upgrade better-auth to 1.7.15 - #244
Open
santoshkumarradha wants to merge 1 commit into
Open
santoshkumarradha wants to merge 1 commit into
santoshkumarradha wants to merge 1 commit into
Conversation
The Nov 2 security cron failed on three better-auth advisories (GHSA-965c-763c-88jm, GHSA-r4xp-prcw-77qf, GHSA-q84f-53jg-9ppm). The patch floor is 1.7.7; 1.6 has no backport. Migrate SSO from signIn.oauth2 / genericOAuthClient to signIn.social, drop the removed issuer fields, and rewrite the old oauth2 callback path so existing IdP redirect URIs keep working. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Santosh kumar <santoshkumarradha@users.noreply.github.com>
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.
Summary
Monday’s scheduled security run on
main(6d15d0f) failedpnpm audit --audit-level=high --prodon three better-auth advisories. 1.6 has no backport; the patch floor is 1.7.7. This PR upgrades dashboard and customer-app to 1.7.15 and completes the 1.7 client migration that Dependabot was previously blocked on.Advisories:
Changes
better-authto1.7.15in both apps andpnpm.overridessignIn.oauth2({ providerId })withsignIn.social({ provider })and dropgenericOAuthClient()issuer/requireIssuerValidationfrom generic OAuth config (1.7 validates via discovery)/api/auth/oauth2/callback/:id→/api/auth/callback/:idso already-registered IdP URIs still land>=1.7.0to>=1.8.0The core
user/session/account/verificationschema is unchanged on 1.7.3+ (we never ran 1.7.0–1.7.2), so no runtime SQL migration is required.Test plan
pnpm audit --audit-level=high --prodis clean (7 low/moderate only)tsc --noEmitpasses in dashboard and customer-app/api/auth/oauth2/callback/enterprise-ssoshould also add/api/auth/callback/enterprise-sso— 1.7 sends the newredirect_urion the authorize requestNotes for reviewers
This is a
fix(security):commit so the next release includes the patched apps. Email/password and magic-link flows are unchanged; SSO is the only client API change.