Skip to content

chore(deps): update dependency better-auth to v1.4.9 [security]#150

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-better-auth-vulnerability
Open

chore(deps): update dependency better-auth to v1.4.9 [security]#150
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-better-auth-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
better-auth (source) 1.4.71.4.9 age confidence

Better 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.cookieCache is 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-auth with both two-factor authentication and session cookie caching enabled may be affected.


Mitigation
  • Upgrade to a version of better-auth that includes the fix for this issue.
  • Ensure that session caching does not treat sessions as fully authenticated until all required authentication steps, including 2FA, are completed.
  • As a temporary workaround, disable session.cookieCache when using two-factor authentication.

Severity

  • CVSS Score: 9.1 / 10 (Critical)
  • Vector String: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

better-auth/better-auth (better-auth)

v1.4.9

Compare Source

   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v1.4.8

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title chore(deps): update dependency better-auth to v1.4.9 [security] chore(deps): update dependency better-auth to v1.4.9 [security] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate
renovate Bot deleted the renovate/npm-better-auth-vulnerability branch April 27, 2026 18:43
@renovate renovate Bot changed the title chore(deps): update dependency better-auth to v1.4.9 [security] - autoclosed chore(deps): update dependency better-auth to v1.4.9 [security] Apr 27, 2026
@renovate renovate Bot reopened this Apr 27, 2026
@renovate
renovate Bot force-pushed the renovate/npm-better-auth-vulnerability branch 2 times, most recently from 9bb25c6 to 12caafb Compare April 27, 2026 22:36
@renovate
renovate Bot force-pushed the renovate/npm-better-auth-vulnerability branch 2 times, most recently from 369b03d to c2e545a Compare May 18, 2026 16:05
@renovate
renovate Bot force-pushed the renovate/npm-better-auth-vulnerability branch 2 times, most recently from 08befee to a4f6da3 Compare June 1, 2026 23:08
@renovate
renovate Bot force-pushed the renovate/npm-better-auth-vulnerability branch from a4f6da3 to f947336 Compare June 13, 2026 15:52
@renovate
renovate Bot force-pushed the renovate/npm-better-auth-vulnerability branch from f947336 to 2a32076 Compare July 16, 2026 04:09
@renovate
renovate Bot force-pushed the renovate/npm-better-auth-vulnerability branch from 2a32076 to f0e636a Compare July 18, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants