{"id":"GHSA-chqv-vrj7-qffp","revision":"6d5e532ef64842a090c81a563e25fe99","records":[{"revision":"6d5e532ef64842a090c81a563e25fe99","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-chqv-vrj7-qffp","aliases":["CVE-2026-46552"],"title":"NocoDB: Shared-base link access can invite arbitrary users as persistent base members","description":"### Summary\n\nShared-base sessions were granted the same base-member capabilities as authenticated viewers. Using only the shared-base UUID (`xc-shared-base-id`), an attacker could enumerate base members and invite an arbitrary email into the base as a real member. The invited user could then redeem the invite via the normal signup flow and retain authenticated access even after the owner revoked the shared link.\n\n### Details\n\nShared-base sessions were mapped to `ProjectRoles.VIEWER` in `packages/nocodb/src/strategies/base-view.strategy/base-view.strategy.ts`, and `packages/nocodb/src/utils/acl.ts` granted `baseUserList` and `userInvite` to that role. The shared frontend (`packages/nc-gui/composables/useApi/interceptors.ts`) deliberately removed auth headers in favour of the shared-base header, but the ACL middleware did not distinguish shared sessions from genuine viewers.\n\nThe end-to-end chain:\n\n- `GET /api/v2/meta/bases/:baseId/users` returned the member list to shared-base callers (`@Acl('baseUserList')`).\n- `POST /api/v2/meta/bases/:baseId/users` accepted an invite from shared-base callers (`@Acl('userInvite')`); `base-users.service.ts` inserted a real `nc_users_v2` row with `invite_token` and a `nc_base_users_v2` row for the target base, with `invited_by = null`.\n- The invited account redeemed the invite through the normal signup path (`users.service.ts`), gaining a persistent JWT scoped to the base.\n- Revoking the shared link did not affect the redeemed account.\n\n### Impact\n\n- Confidentiality: shared-base link exposes member email addresses.\n- Integrity: shared-base link can mutate base ACL state by creating new members.\n- Persistence: link-based access converts into durable authenticated access that survives revocation of the share.\n\n### Credit\n\nThis issue was reported by [@0xmrma](https://github.com/0xmrma).","state":0,"publishedAt":"2026-05-21T20:35:56+00:00","modifiedAt":"2026-07-20T21:30:36.2808423+00:00","affected":[{"ecosystem":"npm","name":"nocodb","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.301.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/nocodb/nocodb/security/advisories/GHSA-chqv-vrj7-qffp","https://nvd.nist.gov/vuln/detail/CVE-2026-46552","https://github.com/nocodb/nocodb"],"sourceUrl":"https://github.com/advisories/GHSA-chqv-vrj7-qffp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-chqv-vrj7-qffp","identifiers":["GHSA-chqv-vrj7-qffp","CVE-2026-46552"]},"retained":false,"historicalAffected":[]}],"coverage":[]}