{"id":"GHSA-hr66-5mqr-8mpx","revision":null,"records":[{"revision":"89d26ab12c2f4edaa1e2dffe0783e2d4","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-73406","aliases":[],"title":"Budibase: Unauthenticated user information disclosure via public tenant user lookup endpoint","description":"Budibase is an open-source low-code platform. Prior to 3.39.32, GET /api/global/users/tenant/:id was listed in PUBLIC_ENDPOINTS in packages/worker/src/api/index.ts, and tenantUserLookup returned a full PlatformUser document. An unauthenticated caller could query an email or user identifier, distinguish existing users from missing users, and obtain tenant identifiers, user identifiers, email addresses, SSO identifiers, and document revision metadata. This issue is fixed in version 3.39.32.","state":0,"publishedAt":"2026-08-12T19:03:51.766+00:00","modifiedAt":"2026-08-13T14:07:05.692+00:00","affected":[{"ecosystem":"Vendor product","name":"budibase","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Budibase\",\n                    \"product\": \"budibase\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.39.32\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"severity":"HIGH"}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-hr66-5mqr-8mpx","https://github.com/Budibase/budibase/pull/19221","https://github.com/Budibase/budibase/commit/0bdf648ff4c024a138a546ef84217e4efbee538e","https://github.com/Budibase/budibase/releases/tag/3.39.32"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-73406","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-73406","identifiers":["CVE-2026-73406"]},"retained":false,"historicalAffected":[]},{"revision":"491db055b93f4240a1c1df1d3abd48f0","observedAt":"2026-11-18T04:38:33.676+00:00","statement":{"source":"euvd","id":"EUVD-2026-57433","aliases":["CVE-2026-73406"],"title":"Budibase is an open-source low-code platform. Prior to 3.39.32, GET /api/global/users/tenant/:id was listed in PUBLIC_ENDPOINTS in packages/worker/src/api/index.ts, and tenantUserLookup returned a full PlatformUser document. An unauthentica…","description":"Budibase is an open-source low-code platform. Prior to 3.39.32, GET /api/global/users/tenant/:id was listed in PUBLIC_ENDPOINTS in packages/worker/src/api/index.ts, and tenantUserLookup returned a full PlatformUser document. An unauthenticated caller could query an email or user identifier, distinguish existing users from missing users, and obtain tenant identifiers, user identifiers, email addresses, SSO identifiers, and document revision metadata. This issue is fixed in version 3.39.32.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"severity":null}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-hr66-5mqr-8mpx","https://github.com/Budibase/budibase/pull/19221","https://github.com/Budibase/budibase/commit/0bdf648ff4c024a138a546ef84217e4efbee538e","https://github.com/Budibase/budibase/releases/tag/3.39.32"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-57433","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 12, 2026, 7:03:51 PM","dateUpdated":"Aug 13, 2026, 2:07:05 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2026-2483","title":"Budibase: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2026-73300","CVE-2026-73301","CVE-2026-73307","CVE-2026-73406","CVE-2026-73407","CVE-2026-73410","CVE-2026-73618"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-57433","identifiers":["EUVD-2026-57433","CVE-2026-73406"]},"retained":false,"historicalAffected":[]},{"revision":"bca4776f300149049567007ca1152b6f","observedAt":"2026-10-25T15:19:03.401+00:00","statement":{"source":"nvd","id":"CVE-2026-73406","aliases":[],"title":"Budibase is an open-source low-code platform. Prior to 3.39.32, GET /api/global/users/tenant/:id was listed in PUBLIC_ENDPOINTS in packages/worker/src/api/index.ts, and tenantUserLookup returned a full PlatformUser document. An unauthentica…","description":"Budibase is an open-source low-code platform. Prior to 3.39.32, GET /api/global/users/tenant/:id was listed in PUBLIC_ENDPOINTS in packages/worker/src/api/index.ts, and tenantUserLookup returned a full PlatformUser document. An unauthenticated caller could query an email or user identifier, distinguish existing users from missing users, and obtain tenant identifiers, user identifiers, email addresses, SSO identifiers, and document revision metadata. This issue is fixed in version 3.39.32.","state":0,"publishedAt":"2026-08-12T20:17:55.617+00:00","modifiedAt":"2026-09-08T20:56:50.52+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"severity":"HIGH"}],"references":["https://github.com/Budibase/budibase/commit/0bdf648ff4c024a138a546ef84217e4efbee538e","https://github.com/Budibase/budibase/pull/19221","https://github.com/Budibase/budibase/releases/tag/3.39.32","https://github.com/Budibase/budibase/security/advisories/GHSA-hr66-5mqr-8mpx"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-73406","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-200"],"productCriteria":[],"sourceDates":{"published":"2026-08-12T20:17:55.617","lastModified":"2026-09-08T20:56:50.520"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-73406","identifiers":["CVE-2026-73406"]},"retained":false,"historicalAffected":[]},{"revision":"c1b49ff9b6aa42e989d034dd51664053","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-hr66-5mqr-8mpx","aliases":["CVE-2026-73406"],"title":" Budibase: Unauthenticated user information disclosure via public tenant user lookup endpoint","description":"#### Summary\nThe Budibase Worker service exposes a public, unauthenticated API endpoint (`GET /api/global/users/tenant/:id`) that returns sensitive user information including `tenantId`, `userId`, `email`, and `ssoId`. The endpoint is registered in the `PUBLIC_ENDPOINTS` list with a `TODO` comment acknowledging it \"should be an internal API.\" Any unauthenticated party can enumerate user emails or IDs to extract sensitive tenant and user metadata, enabling targeted attacks against multi-tenant deployments.\n\n#### Details\n\n**Public endpoint registration** at `packages/worker/src/api/index.ts` lines 56-59:\n\n```typescript\n// TODO: This should be an internal api\n{\n  route: \"/api/global/users/tenant/:id\",\n  method: \"GET\",\n},\n```\n\nThis endpoint is listed in `PUBLIC_ENDPOINTS`, which is passed to `auth.buildAuthMiddleware(PUBLIC_ENDPOINTS)` at line 154. When a request matches a public endpoint pattern, the authentication middleware sets `ctx.publicEndpoint = true` and calls `next()` without performing any authentication (verified at `packages/backend-core/src/middleware/authenticated.ts` lines 124-126, 249-251).\n\nAll subsequent middleware also skips for public endpoints:\n- `buildTenancyMiddleware` — passes through\n- `activeTenant` — passes through\n- `buildCsrfMiddleware` — skipped for GET methods (line 48 of csrf.ts)\n- The `budibaseAccess` gate at lines 160-168 explicitly returns `next()` when `ctx.publicEndpoint` is true\n\n**Route registration** at `packages/worker/src/api/routes/global/users.ts` line 139:\n\n```typescript\nloggedInRoutes\n  .get(\"/api/global/users/tenant/:id\", controller.tenantUserLookup)\n```\n\n`loggedInRoutes` has no auth middleware group — it is created with `endpointGroupList.group()` (no middleware).\n\n**Handler implementation** at `packages/worker/src/api/controllers/global/users.ts` lines 548-562:\n\n```typescript\nexport const tenantUserLookup = async (\n  ctx: UserCtx<void, LookupTenantUserResponse>\n) => {\n  const id = ctx.params.id\n  // is email, check its valid\n  if (id.includes(\"@\") && !emailValidator.validate(id)) {\n    ctx.throw(400, `${id} is not a valid email address to lookup.`)\n  }\n  const user = await userSdk.core.getFirstPlatformUser(id)\n  if (user) {\n    ctx.body = user    // Returns full PlatformUser object — no field filtering\n  } else {\n    ctx.throw(400, \"No tenant user found.\")\n  }\n}\n```\n\nThe `id` parameter accepts either an email address (detected by `@` presence) or a user ID. The response returns the **full** `PlatformUser` object from `packages/types/src/documents/platform/users.ts`:\n\n```typescript\nexport interface PlatformUserByEmail extends Document {\n  tenantId: string    // Tenant identifier\n  userId: string      // Internal user ID\n}\n\nexport interface PlatformUserById extends Document {\n  tenantId: string    // Tenant identifier\n  email?: string      // User email address\n  ssoId?: string      // SSO provider identifier\n}\n\nexport interface PlatformUserBySsoId extends Document {\n  tenantId: string    // Tenant identifier\n  userId: string      // Internal user ID\n  email: string       // User email address\n  ssoId?: string      // SSO provider identifier\n}\n```\n\nThe lookup function (`packages/backend-core/src/users/lookup.ts:48-53`) queries the `PLATFORM_USERS_LOWERCASE` CouchDB view with `include_docs: true`, returning the complete platform user document including CouchDB `_id` and `_rev`.\n\n**Affected files:**\n- `packages/worker/src/api/index.ts:56-59` — Public endpoint registration\n- `packages/worker/src/api/routes/global/users.ts:139` — Route on unauthenticated group\n- `packages/worker/src/api/controllers/global/users.ts:548-562` — Handler returning full user object\n- `packages/backend-core/src/users/lookup.ts:48-53` — Platform user lookup with `include_docs: true`\n- `packages/types/src/documents/platform/users.ts:6-36` — PlatformUser types\n\n#### PoC\n\n**Static verification:**\n\n1. Observe `packages/worker/src/api/index.ts:56-59`: endpoint in `PUBLIC_ENDPOINTS` with `// TODO: This should be an internal api`\n2. Trace handler at `packages/worker/src/api/controllers/global/users.ts:548-562`: no auth checks, returns `ctx.body = user` (full object)\n3. Trace middleware chain: all middleware passes through for `ctx.publicEndpoint === true`\n4. Confirm no field filtering, sanitization, or authorization between request and response\n\n**Dynamic verification (requires running Budibase instance with at least one user):**\n\n```bash\n# No authentication headers or cookies required\n# Lookup by email:\ncurl -s http://localhost:4002/api/global/users/tenant/admin@example.com\n\n# Response (200 OK):\n# {\n#   \"_id\": \"admin@example.com\",\n#   \"_rev\": \"1-abc123...\",\n#   \"tenantId\": \"tenant-uuid-here\",\n#   \"userId\": \"us_uuid-here\"\n# }\n\n# Lookup by user ID:\ncurl -s http://localhost:4002/api/global/users/tenant/us_someuserid123\n\n# Response (200 OK):\n# {\n#   \"_id\": \"us_someuserid123\",\n#   \"_rev\": \"1-abc123...\",\n#   \"tenantId\": \"tenant-uuid-here\",\n#   \"email\": \"admin@example.com\",\n#   \"ssoId\": \"google-oauth-id\"\n# }\n\n# Non-existent user:\ncurl -s http://localhost:4002/api/global/users/tenant/nonexistent@example.com\n# Response: 400 \"No tenant user found.\"\n# (Different response confirms user enumeration)\n```\n\n**Negative case:** Requesting a non-existent user returns HTTP 400 with `\"No tenant user found.\"`, while an existing user returns HTTP 200 with full data. The different status codes confirm user existence, enabling enumeration.\n\n#### Impact\nThis is a **CWE-200: Exposure of Sensitive Information to an Unauthorized Actor** vulnerability.\n\n**Who is impacted:** All Budibase deployments — both self-hosted and cloud. The impact is highest for multi-tenant (cloud) deployments where tenant IDs are security boundaries and user enumeration across tenants enables targeted attacks.\n\nAn unauthenticated attacker can:\n1. **Enumerate all user accounts** by testing known or guessed email addresses against the endpoint\n2. **Extract tenant IDs** for any known user, enabling targeted cross-tenant attacks\n3. **Extract user IDs** (`userId`) for use in other API calls or attacks\n4. **Extract SSO identifiers** (`ssoId`) which may link to external identity providers (Google, OIDC)\n5. **Confirm user existence** through different HTTP responses (200 vs 400)\n6. **Harvest CouchDB revision tokens** (`_rev`) which could assist in CouchDB-level attacks\n\nThe returned tenant IDs are particularly dangerous in multi-tenant deployments because they identify the security boundary between organizations. Combined with the hardcoded session keys (separate finding), an attacker could use enumerated tenant IDs to craft targeted session fixation attacks.\n\n### Suggested remediation\n1. **Remove the endpoint from `PUBLIC_ENDPOINTS`** and move it to internal-only routes, as the TODO comment at line 56 already suggests\n2. **Add authentication and authorization** if the endpoint must remain accessible — require at least `builderOrAdmin` role\n3. **Limit returned fields** to only what the consumer actually needs (strip `_rev`, `ssoId`, and other sensitive fields)\n4. **Return generic 404** for both \"not found\" and \"access denied\" to prevent user enumeration\n5. **Add rate limiting** to prevent automated mass enumeration\n6. **Regression test:** Add a test verifying `GET /api/global/users/tenant/:id` returns 403 without authentication","state":0,"publishedAt":"2026-07-24T21:25:00+00:00","modifiedAt":"2026-08-12T19:26:07.671526+00:00","affected":[{"ecosystem":"npm","name":"@budibase/server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"3.38.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-hr66-5mqr-8mpx","https://github.com/Budibase/budibase/pull/19221","https://github.com/Budibase/budibase/commit/e6bf245fbfdaa35804ef7ee901103282edf0c381","https://github.com/Budibase/budibase","https://github.com/Budibase/budibase/releases/tag/3.39.32"],"sourceUrl":"https://github.com/advisories/GHSA-hr66-5mqr-8mpx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hr66-5mqr-8mpx","identifiers":["GHSA-hr66-5mqr-8mpx","CVE-2026-73406"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T09:40:31.8345493+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T09:40:31.8345493+00:00","lastSuccessAt":"2026-11-19T09:40:32.3515264+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:32.3515283+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-9e2db0084925c841be762919585cd511a893087e7961941f7ebd76ab552c4302","complete":true,"records":428265,"lastAttemptAt":"2026-11-19T09:40:24.3145117+00:00","lastSuccessAt":"2026-11-19T09:40:24.1463366+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:24.3145117+00:00","snapshotPublishedAt":"2026-11-19T09:30:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6e19c69ebb974886991d5dad9f632f81","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T09:50:13.3657605+00:00","lastSuccessAt":"2026-11-19T09:50:12.338+00:00","error":"272 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T09:50:12.338+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13636,"expectedIdentifiers":13908,"failedIdentifiers":272},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T09:40:31.8345493+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T09:40:31.8345493+00:00","lastSuccessAt":"2026-11-19T09:40:32.3815873+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:32.3815895+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8b5fdf678977402cb60bbe3c5e89bf16","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T09:40:33.0523055+00:00","lastSuccessAt":"2026-11-19T09:22:49.229+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:22:49.229+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T09:40:25.2441782+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:25.2441782+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T09:40:24.3875329+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:24.3875329+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-313d8afdba3867de110bc2f0cc252c7b787cb94e08a055d09b0542017e147ca8","complete":true,"records":3194,"lastAttemptAt":"2026-11-19T09:40:31.7231448+00:00","lastSuccessAt":"2026-11-19T09:40:31.5988269+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:31.7231448+00:00","snapshotPublishedAt":"2026-11-19T09:03:08+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-151b9ac741fba7353ad731a68476d546237cc5b2becb54fa011ca91249746bea","complete":true,"records":232733,"lastAttemptAt":"2026-11-19T09:40:24.5744302+00:00","lastSuccessAt":"2026-11-19T08:24:21.1829126+00:00","error":null,"lastVerifiedAt":"2026-11-19T09:40:24.5744302+00:00","snapshotPublishedAt":"2026-11-19T07:32:56+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}