chore(deps): update dependency better-auth to v1.4.9 [security]#150
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency better-auth to v1.4.9 [security]#150renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-better-auth-vulnerability
branch
2 times, most recently
from
April 27, 2026 22:36
9bb25c6 to
12caafb
Compare
renovate
Bot
force-pushed
the
renovate/npm-better-auth-vulnerability
branch
2 times, most recently
from
May 18, 2026 16:05
369b03d to
c2e545a
Compare
renovate
Bot
force-pushed
the
renovate/npm-better-auth-vulnerability
branch
2 times, most recently
from
June 1, 2026 23:08
08befee to
a4f6da3
Compare
renovate
Bot
force-pushed
the
renovate/npm-better-auth-vulnerability
branch
from
June 13, 2026 15:52
a4f6da3 to
f947336
Compare
renovate
Bot
force-pushed
the
renovate/npm-better-auth-vulnerability
branch
from
July 16, 2026 04:09
f947336 to
2a32076
Compare
renovate
Bot
force-pushed
the
renovate/npm-better-auth-vulnerability
branch
from
July 18, 2026 19:38
2a32076 to
f0e636a
Compare
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.
This PR contains the following updates:
1.4.7→1.4.9Better Auth Has Two-Factor Authentication Bypass via Premature Session Caching (session.cookieCache)
GHSA-xg6x-h9c9-2m83
More information
Details
Summary
Under certain configurations, sessions may be considered valid before two-factor authentication (2FA) is fully completed. This can allow access to authenticated routes without verifying the second factor.
Description
When two-factor authentication is enabled, the authentication flow correctly identifies users who require additional verification and defers full authentication until the second factor is completed.
However, when
session.cookieCacheis enabled, the session generated during the initial sign-in step may be cached as valid prior to 2FA verification. Subsequent session lookups may then return this cached session without re-evaluating the 2FA requirement.This results in a situation where session validity can be established before all authentication constraints are satisfied.
Impact
An attacker (or user) with valid primary credentials may gain access to protected application routes without completing the required second authentication factor.
Any application using
better-authwith both two-factor authentication and session cookie caching enabled may be affected.Mitigation
better-auththat includes the fix for this issue.session.cookieCachewhen using two-factor authentication.Severity
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
better-auth/better-auth (better-auth)
v1.4.9Compare Source
🚀 Features
ctx.isTrustedDomainhelper - by @jonathansamines in #6462 (d09c5)additionalFieldsoption in verification table schema - by @noctarius in #6747 (eab5b)🐞 Bug Fixes
=padding in parsed cookies - by @Shridhad in #6789 (47884)trustedOrigins- by @bytaesu in #6904 (ae90b)customTransformInputto where clause values - by @erquhart, ping-maxwell and @ping-maxwell in #6914 (525f0)stopImpersonating- by @jslno in #6568 (6e614)secretgenerates empty - by @himself65 in #6504 (dd254)info --jsonunexpected exit with 1 - by @himself65 in #6949 (54712)info --jsonunexpected exit with 1 - by @himself65 in #6949 (bc8ac)idto root level for delete operations - by @ping-maxwell in #6425 (c3eda)🏎 Performance
View changes on GitHub
v1.4.8Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.