Summary
NocoDB has an authorization bypass in shared views: a holder of an anonymous share link may be able to access records excluded by the view's row filter. By requesting attachment-download or nested-link listing routes with a record ID, an attacker could obtain signed download URLs for hidden files or read linked-record data.
Affected context
The issue affects NocoDB deployments before 2026.08.0 when a shared view uses row filters and its public routes allow anonymous share-link access. The read-by-primary-key path does not apply the shared view's filters, so attachment-download and nested-link listing routes may expose data for records that the view is intended to exclude.
Exploit preconditions
- Attack surface: Public attachment-download or nested-link listing routes for a shared view
- Required access: An anonymous share link; authenticated access is not described as necessary
- Trigger point: A request to one of those routes that references a record by its ID
- Why exploitation is possible: The read-by-primary-key path does not enforce the shared view's row filters before returning record-related data or issuing signed download URLs
Why this happens
The application uses a record's primary key to retrieve it, but that retrieval path does not apply the authorization constraints defined by the shared view's row filter. This is an authorization bypass through a user-controlled key, mapping to CWE-639: access control is not properly enforced when a request selects a resource using an identifier.
Potential impact
- Anonymous share-link holders may access records excluded by the view's row filter.
- They could obtain signed download URLs for hidden attachments.
- They may read data associated with linked records.
- Confidential information could be disclosed beyond the intended scope of the shared view.
General mitigation guidance
Defensive patterns include enforcing authorization and view filters consistently on every record-access path, including lookups by primary key and related-record routes. Treat record IDs from requests as selectors, not as proof of access, and apply the same access policy before returning data or issuing signed URLs. Prefer secure-by-default handling that denies access when policy checks are missing or cannot be evaluated, minimize the data exposed through public links, and limit the privileges and lifetime of download links.
How teams detect issues like this
Review code paths that retrieve records by primary key and confirm they apply the relevant view filters and authorization checks before exposing records, attachments, or related data. Static analysis and code review can look for public routes that accept record identifiers and call data-access methods without passing an authorization context. Test shared views with records both inside and outside their filters, and use policy checks to require authorization before generating signed URLs or returning linked-record data. Automated review tools may help identify inconsistent checks across routes.

