fix(website): bump next-auth and sharp to close Dependabot alerts - #51
Merged
Conversation
- next-auth ^5.0.0-beta.30 -> ^5.0.0-beta.32 (pins @auth/core 0.41.3): fixes GHSA malformed-Bearer getToken crash, homoglyph-@ email normalizer bypass, and provider-unbound OAuth state/nonce/PKCE cookies - drop the unused direct @auth/core ^0.34.3 dependency; nothing imports it and next-auth ships its own pinned copy - sharp ^0.34.5 -> ^0.35.4 (libvips CVE-2026-33327/33328/35590/35591); root `overrides` forces next's optional sharp ^0.34.3 onto 0.35 so no vulnerable copy stays in the lockfile (next@16 itself uses ^0.35.3) Co-Authored-By: Claude Fable 5 <noreply@anthropic.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.
Closes the 4 open Dependabot alerts (#144–#147), all in
packages/website.Changes
^5.0.0-beta.30→^5.0.0-beta.32, which pins@auth/core@0.41.3. Fixes:@bypassgetToken()throws an uncaught exception on malformedBearerheaders@auth/core@^0.34.3dependency. Nothing in the repo imports it;next-authships its own pinned copy, so the stale 0.34.3 was a second vulnerable copy in the lockfile for no benefit.^0.34.5→^0.35.4(#144 — libvips CVE-2026-33327 / 33328 / 35590 / 35591).next@15.5.11declaressharp ^0.34.3as an optional dep, which kept a nestedsharp@0.34.5inbun.lock, so a rootoverridesforces it onto 0.35 as well.next@16itself already usessharp ^0.35.3, so this is within Next's supported range.Behaviour note
next-auth@beta.32also changes one thing beyond the security fixes: a non-OK session response now yields no session instead of an error object. Checked everyauth()/useSessionconsumer (lib/auth.ts,nextlytics.ts,app/demo/layout.tsx) — all only testsession?.user, none branch onsession.error, so this is a no-op here.Verification
bun install --frozen-lockfile— no changesbun run verify(typecheck, lint, format:check, test) — greenbun run build— green (exercises Next with the overridden sharp)bun packages/website/scripts/generate-icons.ts— the only directsharpconsumer, runs cleanly on 0.35.4bun.locknow contains exactly onesharp(0.35.4) and one@auth/core(0.41.3) entry🤖 Generated with Claude Code