GHSA-fmh4-wcc4-5jm3: Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization plugin
A vulnerability in the better-auth library's organization plugin allows an attacker to accept an organization invitation without verifying email ownership. This occurs when the application permits unverified email sign-ups and does not enforce email verification on invitation acceptance. An attacker who obtains the invitation ID and registers an unverified account with the victim's email can join the organization with the invited role. The issue is fixed in better-auth version 1.6.11 by requiring email verification on all invitation-related endpoints by default.
AI Analysis
Technical Summary
The better-auth organization plugin's acceptInvitation endpoint relies on a simple email string equality check to verify invitation ownership, without requiring email verification by default. If an application allows unverified email sign-ups (emailAndPassword enabled without requireEmailVerification) and does not set requireEmailVerificationOnInvitation to true, an attacker can pre-register an unverified account with the victim's email address. When the organization admin invites that email, the attacker can use the leaked invitationId to accept the invitation and join the organization. The fix in [email protected] enforces emailVerified checks on acceptInvitation, rejectInvitation, getInvitation, and listUserInvitations endpoints and defaults requireEmailVerificationOnInvitation to true, preventing this attack vector.
Potential Impact
An attacker can perform an account takeover on the organization invitation surface by pre-registering an unverified account with the victim's email and using a leaked invitationId to accept the invitation. This allows unauthorized joining of the organization with the invited role, potentially leading to unauthorized access and privilege escalation within the organization.
Mitigation Recommendations
Upgrade to better-auth version 1.6.11 or later, which enforces email verification on all invitation endpoints by default. If immediate upgrade is not possible, set the organization plugin option requireEmailVerificationOnInvitation to true to block acceptInvitation and rejectInvitation calls from unverified sessions. Additionally, enable requireEmailVerification in emailAndPassword configuration or remove email/password sign-up to prevent unverified account creation. Middleware can also be added to enforce emailVerified status on invitation routes. Note that requireEmailVerificationOnInvitation does not gate getInvitation and listUserInvitations endpoints unless upgraded.
GHSA-fmh4-wcc4-5jm3: Better Auth vulnerable to unauthorized invitation acceptance via unverified email match in organization plugin
Description
A vulnerability in the better-auth library's organization plugin allows an attacker to accept an organization invitation without verifying email ownership. This occurs when the application permits unverified email sign-ups and does not enforce email verification on invitation acceptance. An attacker who obtains the invitation ID and registers an unverified account with the victim's email can join the organization with the invited role. The issue is fixed in better-auth version 1.6.11 by requiring email verification on all invitation-related endpoints by default.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The better-auth organization plugin's acceptInvitation endpoint relies on a simple email string equality check to verify invitation ownership, without requiring email verification by default. If an application allows unverified email sign-ups (emailAndPassword enabled without requireEmailVerification) and does not set requireEmailVerificationOnInvitation to true, an attacker can pre-register an unverified account with the victim's email address. When the organization admin invites that email, the attacker can use the leaked invitationId to accept the invitation and join the organization. The fix in [email protected] enforces emailVerified checks on acceptInvitation, rejectInvitation, getInvitation, and listUserInvitations endpoints and defaults requireEmailVerificationOnInvitation to true, preventing this attack vector.
Potential Impact
An attacker can perform an account takeover on the organization invitation surface by pre-registering an unverified account with the victim's email and using a leaked invitationId to accept the invitation. This allows unauthorized joining of the organization with the invited role, potentially leading to unauthorized access and privilege escalation within the organization.
Mitigation Recommendations
Upgrade to better-auth version 1.6.11 or later, which enforces email verification on all invitation endpoints by default. If immediate upgrade is not possible, set the organization plugin option requireEmailVerificationOnInvitation to true to block acceptInvitation and rejectInvitation calls from unverified sessions. Additionally, enable requireEmailVerification in emailAndPassword configuration or remove email/password sign-up to prevent unverified account creation. Middleware can also be added to enforce emailVerified status on invitation routes. Note that requireEmailVerificationOnInvitation does not gate getInvitation and listUserInvitations endpoints unless upgraded.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fmh4-wcc4-5jm3
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53514"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a4e4ef7c9d9e3dbe328cc1c
Added to database: 07/08/2026, 13:21:59 UTC
Last enriched: 07/08/2026, 13:45:09 UTC
Last updated: 07/08/2026, 13:45:09 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.