fix(deps): update dependency better-auth to v1.1.6 [security] #982
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.0.22
->1.1.6
GitHub Vulnerability Alerts
CVE-2024-56734
Summary
An open redirect vulnerability has been identified in the verify email endpoint of Better Auth, potentially allowing attackers to redirect users to malicious websites. This issue affects users relying on email verification links generated by the library.
Affected Versions
Impact
Attackers could craft malicious email verification links that exploit the redirect functionality to send users to untrusted domains. This can result in:
Vulnerability Details
The verify email callback endpoint accepts a
callbackURL
parameter. Unlike other verification methods, email verification only uses JWT to verify and redirect without proper validation of the target domain. The origin checker is bypassed in this scenario because it only checks forPOST
requests. An attacker can manipulate this parameter to redirect users to arbitrary URLs controlled by the attacker.Example Exploit:
Patches
Upgrade to Better Auth v1.1.6 or later. This version enforces domain validation for
callbackURL
for/verify-email
path and for all otherGET
endpoints.Workarounds
You can also use hooks to pre-check URLs in your auth instance to prevent this without upgrading:
Release Notes
better-auth/better-auth (better-auth)
v1.1.6
Compare Source
🔓 Security Fixes
View changes on GitHub
v1.1.5
Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.1.4
Compare Source
🐞 Bug Fixes
View changes on GitHub
v1.1.3
Compare Source
🚀 Features
🐞 Bug Fixes
View changes on GitHub
v1.1.2
Compare Source
🐞 Bug Fixes
isPending
- by @Bekacru in https://github.com/better-auth/better-auth/issues/976 (809f6)View changes on GitHub
v1.1.1
Compare Source
Refactor (API Change)
credentialID
field to replace generated IDs and prevent storing invalid IDs when the ID is database-generated and removeswebAuthnUserId
since it's duplicate property with userId. If you were using passkeys, migrate to this change by renaming the existingid
field tocredentialID
for existing users. After that, the currentwebauthnUserID
field can be renamed toid
(primary key). - by @masterjanic and @Bekacru in https://github.com/better-auth/better-auth/issues/865 (f3acd)🐞 Bug Fixes
View changes on GitHub
v1.1.0
Compare Source
🚀 New Features
✨ Improvements and API Changes
token
. This change allows for storing sensitive fields in the user table and eliminates unnecessary returned data. As a result, all endpoints, except/get-session
, now enforce this. - by @Bekacru in https://github.com/better-auth/better-auth/issues/968 (eacf0)token
, to enable custom flows. - by @Bekacru in https://github.com/better-auth/better-auth/issues/929 (cfd24)🐞 Bug Fixes
/lib/server
- by @xKesvaL in https://github.com/better-auth/better-auth/issues/919 (74fff)View changes on GitHub
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.