Summary
NocoDB has an account takeover vulnerability involving the handling of base invitation tokens. A user with the base creator role may be able to obtain a newly minted token from the base member list and use the signup password-reset flow to take over another account, including an owner or super admin account.
Affected context
The issue affects NocoDB deployments where base invitations can be resent by users with the base creator role and the resulting invite token is readable through the base member list. The described attack chain can expose accounts beyond the user's normal role, including owner and super admin accounts.
Exploit preconditions
- Attack surface: NocoDB's base invitation and member-management functionality
- Required access: A user account with the base creator role
- Trigger point: Resending a base invitation and accessing the base member list
- Why exploitation is possible: The resend flow mints an invite token that can be read from the member list and used in the signup flow to reset the victim's password
Why this happens
The vulnerability is an exposure of sensitive authentication material, mapping to CWE-200: Exposure of Sensitive Information to an Unauthorized Actor. The invitation workflow makes a token usable for account recovery accessible through a member-list view to a user who should not be able to take over the invited account. The risk arises from insufficient protection of the token's confidentiality and its connection to password-reset behavior.
Potential impact
- A user with the base creator role could take over another account
- Owner or super admin accounts could be compromised
- An attacker could gain access to data and functionality available to the victim
- Account takeover could enable further unauthorized changes within the deployment
General mitigation guidance
Defensive patterns focus on protecting invitation and recovery tokens throughout their lifecycle.
- Avoid exposing secrets in member lists or other interfaces accessible to lower-privileged users
- Bind invitation tokens to their intended recipient and purpose, and prevent their reuse for password recovery unless explicitly designed and authorized
- Apply authorization checks to invitation resend and account recovery operations
- Minimize token lifetime and invalidate superseded tokens
- Use least-privilege role design and require stronger controls for sensitive account changes
How teams detect issues like this
Review invitation resend and password-reset flows for shared tokens or unintended cross-purpose use. Static analysis and code review can look for secrets returned in API responses, member-list serialization, and missing authorization checks around token issuance. Audit logs and monitoring policies can flag repeated invitation resends, unexpected recovery activity, and password changes to privileged accounts.

