fix(agentex-ui): bump next-auth 5.0.0-beta.31 -> 5.0.0-beta.32 (4 CVEs)#376
Open
scale-prodsec[bot] wants to merge 1 commit into
Open
fix(agentex-ui): bump next-auth 5.0.0-beta.31 -> 5.0.0-beta.32 (4 CVEs)#376scale-prodsec[bot] wants to merge 1 commit into
scale-prodsec[bot] wants to merge 1 commit into
Conversation
Bumps next-auth to 5.0.0-beta.32, which pulls the fixed @auth/[email protected] transitively (was 0.41.2). Clears these Auth.js advisories: - GHSA-7rqj-j65f-68wh (CRITICAL) - email homoglyph @ bypass (@auth/core, next-auth) - GHSA-8fpg-xm3f-6cx3 (CRITICAL) - existence auth checks fail open (next-auth) - GHSA-xmf8-cvqr-rfgj (HIGH) - getToken() uncaught exception on bad Bearer header - GHSA-x445-f3h2-j279 (MEDIUM) - OAuth check cookies not bound to provider Resolves GFDVR-20810 (@auth/core), GFDVR-20811 (next-auth). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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
Bumps
next-auth5.0.0-beta.31→5.0.0-beta.32inagentex-ui, which transitively pulls the fixed@auth/core0.41.2→0.41.3(declared exactly by beta.32). One direct-dependency bump clears every Auth.js advisory in this batch — nooverrides/resolutionsneeded.The app uses the Auth.js v5 API (
NextAuth/NextAuthConfiginauth.ts,getTokenfromnext-auth/jwt), so the fix stays on the 5.x beta line rather than downgrading to the 4.24.15 branch.CVEs resolved (4 unique)
@bypass (affects@auth/coreandnext-auth)next-auth)getToken()throws an uncaught exception on malformed Bearer authorization headersstate,nonce, and PKCE check cookies are not bound to the provider that created themChanged files
agentex-ui/package.json— raised the declared floornext-auth: ^5.0.0-beta.29→^5.0.0-beta.32so a future re-lock cannot reselect the vulnerable version.agentex-ui/package-lock.json— re-locked:next-auth→5.0.0-beta.32,@auth/core→0.41.3. Registry URLs remain public npm;lockfileVersionunchanged.Verification
[email protected]and@auth/[email protected]both report zero known advisories.npm ci(the CI immutable-install gate) succeeds — lockfile is deterministic and in sync withpackage.json.tsc --noEmit(npm run typecheck) passes clean — the beta.31→beta.32 patch bump introduces no API breakage in the app's NextAuth v5 usage.core-0.41.2.tgz,next-auth-5.0.0-beta.31.tgz) are gone from the lockfile.Linear
Resolves GFDVR-20810 (
@auth/core) and GFDVR-20811 (next-auth).Greptile Summary
This PR bumps
next-authfrom5.0.0-beta.31to5.0.0-beta.32(which pins@auth/coreto0.41.3) to resolve four Auth.js advisories — two CRITICAL, one HIGH, one MEDIUM. The diff is minimal and scoped exactly to the two dependency files.package.json: version floor raised from^5.0.0-beta.29→^5.0.0-beta.32, preventing future re-lock from pulling in the vulnerable range.package-lock.json:next-authand@auth/coreversions/integrity hashes updated;nodemailerpeer dep range widened to^7.0.7 || ^8.0.5(upstream change in beta.32, no app-level impact).Confidence Score: 5/5
Safe to merge — the change is a minimal, targeted dependency patch with no app code touched.
Both files change only the two expected packages (next-auth, @auth/core) and their integrity hashes. The version floor in package.json is correctly raised so future installs cannot regress. The only non-version change in the lockfile (widened nodemailer peer dep range) is upstream metadata from beta.32 and has no runtime effect on the app. No unrelated lock churn, no API surface changes, no code logic altered.
No files require special attention.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Client participant NextAuth as [email protected] participant Core as @auth/[email protected] participant Provider as OAuth Provider Client->>NextAuth: Auth request (login / getToken) Note over NextAuth,Core: GHSA-xmf8: malformed Bearer no longer throws uncaught exception NextAuth->>Core: "Delegate to @auth/core" Note over Core: GHSA-7rqj: Unicode normalization applied BEFORE email validation Core->>Provider: OAuth flow (state/nonce/PKCE) Note over Core,Provider: GHSA-x445: cookies now bound to originating provider Provider-->>Core: Callback Note over Core: GHSA-8fpg: existence-based auth checks no longer fail open Core-->>NextAuth: Verified session/token NextAuth-->>Client: Auth responseReviews (1): Last reviewed commit: "fix(agentex-ui): bump next-auth 5.0.0-be..." | Re-trigger Greptile