Repository navigation
build(deps): bump better-auth from 1.6.13 to 1.7.17 - #37
Open
superbot-helper wants to merge 1 commit into
Open
superbot-helper wants to merge 1 commit into
superbot-helper wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
mainatc966d091932311e0a966272be432a0f9e4054f54(the repository's default branch)README.md(the repository has noCONTRIBUTING.md,.github/directory or PR template)Bumps
better-authfrom 1.6.13 to 1.7.17. The manifest range(
"better-auth": "^1.6.13",package.json:31) already permits 1.7.x, so thisis a lockfile-only change:
package-lock.jsonis the only file touched, withno manifest or source edit.
1.6.13 is below the patched version of 13 published advisories against
better-authand the adapter packages it bundles. 1.7.17 is the currentlatestrelease and is above all of their patched versions (1.6.22,1.7.0-rc.3,1.7.7,1.7.16), so it clears every one.Advisories visible in the global database
npm auditand the npm bulk advisory feed already flagbetter-auth@1.6.13for these four. All four are fixed by 1.7.17.
better-auth>=1.1.3 <1.6.221.6.22better-auth>=1.3.8-beta.3 <1.7.0-rc.31.7.0-rc.3better-auth>=1.5.0-beta.12 <1.7.71.7.7better-auth>=1.4.0-beta.18 <1.7.71.7.7Repository-only advisories
These nine are published in
better-auth/better-auth's own advisory databasebut are absent from the global database and OSV (all 404 from
api.github.com/advisoriesandapi.osv.dev/v1/vulns/), so no dependencyscanner has a record to match. All nine are fixed by 1.7.17.
better-auth<1.7.161.7.16better-auth>=0.4.12-beta.7 <1.7.161.7.16better-auth<1.7.161.7.16better-auth(<1.7.16),@better-auth/drizzle-adapter,@better-auth/kysely-adapter(>=1.5.0-beta.9 <1.7.16)1.7.16better-auth>=1.4.0 <1.7.161.7.16better-auth>=0.4.9 <1.7.161.7.16better-auth>=1.5.5 <1.7.161.7.16better-auth>=1.3.7 <1.7.161.7.16better-auth>=0.8.1-beta.5 <1.7.161.7.16@better-auth/ssois a separate plugin package that this repository does notinstall: no better-auth plugin package is in the lockfile, only the
@better-auth/{core,telemetry,utils,drizzle-adapter,kysely-adapter,memory-adapter,mongo-adapter,prisma-adapter}packages that
better-authitself depends on. The SSO advisoriesGHSA-8c5h-wx78-2cfg, GHSA-prpr-5gj3-qqhg and GHSA-mx9r-x6ww-qjw9 therefore do
not apply here.
Which advisories this clears: all 13 above.
1.6.34, would clear onlyGHSA-qq9h-g4jm-xgf3. It would leave the other twelve in the lockfile —
including the criticals GHSA-965c-763c-88jm and GHSA-4wq4-2ppv-q3hg — and it
would bring GHSA-44jh-23m7-hpcf (
>=1.6.17 <1.7.7, a low-severity MySQLrate-limit issue) into range, which 1.6.13 is below.
>=1.7.7forGHSA-965c-763c-88jm and GHSA-r4xp-prcw-77qf,
>=1.7.0-rc.3forGHSA-q84f-53jg-9ppm, and
>=1.7.16for the nine repository-only ones.1.7.17 is the newest release, is inside the declared
^1.6.13range, and thenpm bulk feed returns
{}for it.What this does
Two criticals and four highs are among the 13:
statevalue can be replayed as a Magic Linktoken to sign in as another user.
issue.
sign-in — an attacker who registers an address first keeps a working
password after the real owner signs in with the link or code.
client or its permissions.
another user.
The remaining seven are medium-severity issues in admin roles, OAuth sign-in,
email change, organization invites, email OTP, secondary session storage and
the MySQL adapters; the table lists them.
Reachability in webdog
src/lib/auth.ts:187-209configures Better Auth with only:drizzleAdapter(db, { provider: "pg" })— PostgreSQL;emailAndPassword: { enabled: true, minPasswordLength: 8 };No plugins are registered (the
betterAuth({...})call has nopluginsarray), and no social/OAuth provider is configured. The app uses only
signIn.email/signUp.email/signOut(
src/app/sign-in/form.tsx:28,src/app/sign-up/form.tsx:29,src/components/header-user-menu.tsx:53).The affected flows are not enabled: magic link and email OTP, OAuth and the
OAuth proxy, device login, phone number, admin roles, the organization plugin,
the Expo proxy, MySQL adapters, secondary session storage and the cookie
cache.
user.changeEmailis not configured either, so the change-emailendpoint returns
EMAIL_CHANGE_DISABLED. No advisory above is demonstrablyreachable in webdog's current configuration. This PR is dependency hygiene and
defense-in-depth: it removes 13 affected releases before any of those flows is
turned on.
Change
package-lock.jsononly:better-auth1.6.13 → 1.7.17, together with the@better-auth/{core,drizzle-adapter,kysely-adapter,memory-adapter,mongo-adapter,prisma-adapter,telemetry}1.7.17 packages it bundles,
better-call1.3.5 → 1.4.5,@better-auth/utils0.4.1 → 0.5.1, and their supporting dependencies.subtree (verified by listing every dependent of each changed entry):
better-auth, the eight@better-auth/*packages above,better-call,@better-auth/utils,@better-fetch/fetch,@noble/hashes,jose,nanostores,rou3,set-cookie-parser, and the nestedzod4.x thatbetter-auth requires (the root
zod3.x entry is untouched).(
@opentelemetry/semantic-conventions1.42.0, no longer a dependency of@better-auth/core1.7.17).lockfileVersion: 3unchanged;package.jsonunchanged.Verification performed
Environment: macOS arm64, Node 26.13.0, npm 11.20.0. The repository has no
packageManagerfield and ships apackage-lock.json, so npm is its ownpackage manager.
mainatc966d091932311e0a966272be432a0f9e4054f54:npm ciexit 0 (419 packages);npm run typecheckexit 0;npm run lintexit 0 with 10 pre-existing warnings; the repository's only test file
(
src/lib/ai-alert-triage.test.ts, 12 tests) passes;npm run buildexit 0.npm audit --omit=devreports 12 vulnerabilities (2 critical), includingbetter-authcritical with the four global advisories above.package-lock.jsonchanged:npm update better-auth(npm 11.20.0) resolvesbetter-auth@1.7.17,@better-auth/*@1.7.17,better-call@1.4.5and@better-auth/utils@0.5.1;npm run typecheckexit 0;npm run lint0 errors with the same 10 warnings; the same 12 tests pass;
npm run buildexit 0;
npm audit --omit=devreports 11 vulnerabilities (1 critical) — thebetter-authentry is gone, and the remaining findings are pre-existing inother dependencies.
main, replace onlypackage-lock.jsonwith the updated file:
npm ciexit 0, then typecheck, lint, the 12 testsand
npm run buildall pass as above.git statusafter the install showsonly the expected
package-lock.jsonmodification.npm install --package-lock-onlyon the unmodifiedmaincheckout reports "up to date" and produces a zero-byte diff, so thelock diff above comes only from the bump and not from the npm version.
npm ls better-authresolves a singlebetter-auth@1.7.17;npm ls --allexits 0 and its only unmet entries areoptional dependencies (platform-specific esbuild binaries, database and
cloud adapters), which npm does not treat as errors.
How should this be manually tested?
npm ci npm run typecheck npm run lint npm run build # sign-up, sign-in and sign-out, then a session-gated dashboard requestScan delta and why this is not a Dependabot PR
version per request, returns four advisories for
better-auth@1.6.13andzero for
1.7.17. A scan delta exists, andnpm audit --omit=devshowsit (12 vulnerabilities → 11, critical 2 → 1).
("bump better-auth from 1.6.13 to 1.6.22") was opened on 2026-07-28, four
days after GHSA-qq9h-g4jm-xgf3 was published to the global database, and it
targets that advisory's 1.6.22 fix. It is still open, has not been updated
since 2026-07-28, and no PR exists for the three global advisories published
later (2026-09-28 and 2026-10-27).
OSV, and the bulk feed returns
{}for them, so no dependency scanner canmatch them and no bot PR exists for them.
GHSA-q84f-53jg-9ppm, GHSA-r4xp-prcw-77qf, GHSA-965c-763c-88jm and all nine
repository-only advisories.