Summary
NocoDB has an authorization flaw that can let authenticated users read row comments belonging to another base by supplying model and row identifiers. Depending on access and setup, this may expose private comments and author email addresses, or allow comment spoofing through decoy tables and duplicate IDs.
Affected context
The issue affects NocoDB row-comment access when authorization relies on supplied model and row IDs without adequately checking that the requester is permitted to access the corresponding base and row. An authenticated Viewer or Creator on an unrelated base may be able to access comments across base boundaries; the described spoofing scenario also depends on being able to create decoy tables and duplicate comment IDs.
Exploit preconditions
- Attack surface: NocoDB row-comment access functionality
- Required access: An authenticated account with Viewer or Creator access to an unrelated base
- Trigger point: A request supplying model and row identifiers for comment access
- Why exploitation is possible: The identifiers may be accepted without a sufficient authorization check tying the requested comment to a base the user can access
- Spoofing condition: Planting decoy tables and duplicate comment IDs may enable misleading attribution of comments
Why this happens
The underlying issue is an object-level authorization failure. Access decisions based on user-supplied model and row identifiers, without verifying the user's permission for the specific base and row, can expose objects across tenant or base boundaries.
This maps to CWE-639: Authorization Bypass Through User-Controlled Key. The insecure pattern is treating an identifier as proof of authorization rather than checking access to the identified resource.
Potential impact
- Authenticated users may read private comments from bases they cannot otherwise access.
- Comment content may reveal sensitive information, including author email addresses.
- Users may be able to create misleading or spoofed comments under certain table and identifier conditions.
- Exposed comments could undermine confidentiality and trust in collaboration records.
General mitigation guidance
Mitigation generally centers on enforcing authorization for each requested object, rather than trusting identifiers supplied by the client.
Common defensive patterns include:
- Scoping comment lookups to bases and rows the authenticated user is authorized to access.
- Checking permissions server-side on every read and write operation.
- Using tenant-aware data access layers that apply authorization constraints by default.
- Avoiding identifier uniqueness assumptions as a substitute for access control.
- Applying least privilege to user roles and reviewing access boundaries between bases.
How teams detect issues like this
Useful detection approaches include:
- Reviewing comment lookup paths for authorization checks tied to the specific base and row.
- Using static analysis or code review to flag object retrieval based on client-controlled IDs without nearby permission checks.
- Testing that users cannot retrieve comments across bases by changing model or row identifiers.
- Enforcing policy checks in APIs and data-access layers, and monitoring for repeated cross-base access attempts.

