Summary
NocoDB exposes pending workspace invitation tokens through the workspace member list to authenticated workspace viewers. A viewer who obtains a token for a higher-privileged invitation may be able to redeem it at signup and gain the invited account's privileges.
Affected context
The issue affects NocoDB versions from 0.301.4 up to, but not including, 2026.10.0. It occurs in the workspace member-list flow when pending invitation tokens are visible to authenticated viewers who do not otherwise need access to those secrets.
Exploit preconditions
- Attack surface: Workspace member list
- Required access: An authenticated account with workspace viewer access
- Trigger point: Viewing the member list while an invitation is pending
- Why exploitation is possible: The list exposes an invitation token that may be redeemable during signup, potentially granting the privileges associated with the invitation
Why this happens
Sensitive invitation tokens are disclosed to users whose workspace role should not grant access to them. This is an information exposure weakness mapped to CWE-200, where sensitive information is made available to an unauthorized or insufficiently authorized party. If a token grants higher privileges, its exposure can also undermine the intended authorization boundary.
Potential impact
- A viewer may obtain a pending invitation token
- An attacker could redeem a token associated with a higher-privileged account
- A workspace could be taken over if an owner-level invitation is exposed and successfully claimed
- Exposed invitations may be used to gain access beyond the viewer's intended permissions
General mitigation guidance
Mitigation generally centers on keeping invitation secrets out of responses and enforcing authorization at the point where workspace data is retrieved.
Common defensive patterns include:
- Returning only the invitation fields needed by each role, and excluding tokens from member-list responses
- Applying server-side authorization checks to sensitive fields and actions
- Using short-lived, single-use invitation tokens and invalidating them after redemption or cancellation
- Limiting invitation privileges to the minimum required and requiring deliberate owner-level approval
- Auditing access to invitation data and restricting unnecessary workspace permissions
How teams detect issues like this
High-level checks can focus on whether sensitive invitation fields are exposed across role boundaries.
- Review API responses and serializers for invitation tokens returned to viewers
- Test member-list authorization with accounts of different workspace roles
- Use static analysis and code review to identify sensitive fields included in broadly accessible responses
- Enforce API schema and authorization policies that prevent secret fields from being returned to insufficiently privileged users
- Monitor invitation redemption and role changes for unexpected patterns

