{"id":"GHSA-gh4h-34gr-87r7","revision":null,"records":[{"revision":"040ab050d40245898dab3e29119efc72","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-73308","aliases":[],"title":"Budibase: OAuth2 Token Disclosure via Automation Test Results Broadcast to Other Builders","description":"Budibase is an open-source low-code platform. Prior to 3.39.25, packages/server/src/api/controllers/automation.ts returned automation test results containing trigger.outputs.user.oauth2, broadcast BuilderSocketEvent.AutomationTestProgress to the app room, and stored progress in packages/server/src/automations/testProgress.ts without user scoping. A co-builder could receive or poll another SSO-authenticated builder test and obtain OAuth2 access and refresh tokens. The fix adds sanitizeAutomationTestResult and isolates progress by user. This issue is fixed in version 3.39.25.","state":0,"publishedAt":"2026-08-12T19:01:15.182+00:00","modifiedAt":"2026-08-14T21:55:19.96+00:00","affected":[{"ecosystem":"Vendor product","name":"budibase","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Budibase\",\n                    \"product\": \"budibase\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.39.25\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"severity":"MEDIUM"}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-gh4h-34gr-87r7","https://github.com/Budibase/budibase/pull/19107","https://github.com/Budibase/budibase/commit/bca426de7dc36d680285295655dc640dea2aab21","https://github.com/Budibase/budibase/releases/tag/3.39.25"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-73308","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-73308","identifiers":["CVE-2026-73308"]},"retained":false,"historicalAffected":[]},{"revision":"1abd06948d774a99941bd68de734cbb3","observedAt":"2026-11-17T19:40:29.202+00:00","statement":{"source":"euvd","id":"EUVD-2026-57432","aliases":["CVE-2026-73308"],"title":"Budibase is an open-source low-code platform. Prior to 3.39.25, packages/server/src/api/controllers/automation.ts returned automation test results containing trigger.outputs.user.oauth2, broadcast BuilderSocketEvent.AutomationTestProgress t…","description":"Budibase is an open-source low-code platform. Prior to 3.39.25, packages/server/src/api/controllers/automation.ts returned automation test results containing trigger.outputs.user.oauth2, broadcast BuilderSocketEvent.AutomationTestProgress to the app room, and stored progress in packages/server/src/automations/testProgress.ts without user scoping. A co-builder could receive or poll another SSO-authenticated builder test and obtain OAuth2 access and refresh tokens. The fix adds sanitizeAutomationTestResult and isolates progress by user. This issue is fixed in version 3.39.25.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"severity":null}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-gh4h-34gr-87r7","https://github.com/Budibase/budibase/pull/19107","https://github.com/Budibase/budibase/commit/bca426de7dc36d680285295655dc640dea2aab21","https://github.com/Budibase/budibase/releases/tag/3.39.25"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-57432","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 12, 2026, 7:01:15 PM","dateUpdated":"Aug 14, 2026, 9:55:19 PM"},"relatedAdvisories":[],"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-57432","identifiers":["EUVD-2026-57432","CVE-2026-73308"]},"retained":false,"historicalAffected":[]},{"revision":"4acbf48aa02d409083a6aaf27e3c0a03","observedAt":"2026-10-25T15:19:03.401+00:00","statement":{"source":"nvd","id":"CVE-2026-73308","aliases":[],"title":"Budibase is an open-source low-code platform. Prior to 3.39.25, packages/server/src/api/controllers/automation.ts returned automation test results containing trigger.outputs.user.oauth2, broadcast BuilderSocketEvent.AutomationTestProgress t…","description":"Budibase is an open-source low-code platform. Prior to 3.39.25, packages/server/src/api/controllers/automation.ts returned automation test results containing trigger.outputs.user.oauth2, broadcast BuilderSocketEvent.AutomationTestProgress to the app room, and stored progress in packages/server/src/automations/testProgress.ts without user scoping. A co-builder could receive or poll another SSO-authenticated builder test and obtain OAuth2 access and refresh tokens. The fix adds sanitizeAutomationTestResult and isolates progress by user. This issue is fixed in version 3.39.25.","state":0,"publishedAt":"2026-08-12T20:17:54.563+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:L/UI:R/S:U/C:H/I:N/A:N","score":5.7,"severity":"MEDIUM"}],"references":["https://github.com/Budibase/budibase/commit/bca426de7dc36d680285295655dc640dea2aab21","https://github.com/Budibase/budibase/pull/19107","https://github.com/Budibase/budibase/releases/tag/3.39.25","https://github.com/Budibase/budibase/security/advisories/GHSA-gh4h-34gr-87r7"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-73308","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-200"],"productCriteria":[],"sourceDates":{"published":"2026-08-12T20:17:54.563","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-73308","identifiers":["CVE-2026-73308"]},"retained":false,"historicalAffected":[]},{"revision":"5fe69c66af524983b90017fb456f5cb8","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-gh4h-34gr-87r7","aliases":["CVE-2026-73308"],"title":" Budibase: OAuth2 Token Disclosure via Automation Test Results Broadcast to Other Builders","description":"## Summary\n\nWhen an SSO-authenticated user tests an automation in the Budibase builder, their OAuth2 access token and refresh token are included in the automation test results. These results are broadcast via WebSocket to all builders connected to the same dev app and stored in an in-memory cache accessible to any builder who polls the test status endpoint. This allows any co-builder of the same app to steal the testing user's OAuth2 tokens.\n\n## Details\n\nThe vulnerability exists because `getUserContextBindings()` intentionally includes OAuth2 tokens in user context bindings (so automations can call external APIs), but the automation test pipeline exposes the full result — including these tokens — to all builders of the same app without sanitization.\n\n**Step 1: Tokens included in user bindings**\n\nIn `packages/server/src/sdk/users/utils.ts:134-161`:\n```typescript\nexport function getUserContextBindings(user: ContextUser): UserBindings {\n  const bindings: UserBindings = {\n    _id: user._id,\n    email: user.email,\n    // ...\n  }\n  if (isSSOUser(user) && user.oauth2) {\n    bindings.oauth2 = {\n      accessToken: user.oauth2.accessToken,   // <-- sensitive\n      refreshToken: user.oauth2.refreshToken,  // <-- sensitive\n    }\n  }\n  return bindings\n}\n```\n\n**Step 2: Bindings passed to automation execution**\n\nIn `packages/server/src/api/controllers/automation.ts:311-312`:\n```typescript\nconst user = sdk.users.getUserContextBindings(ctx.user)\nreturn await triggers.externalTrigger(\n  { ...automation, disabled: false },\n  { ...input, appId, user },  // user with tokens passed as event param\n  { getResponses: true, onProgress: emitProgress }\n)\n```\n\n**Step 3: Tokens placed in trigger outputs**\n\nIn `packages/server/src/threads/automation.ts:409-413`:\n```typescript\nconst trigger: AutomationTriggerResult = {\n  id: data.automation.definition.trigger.id,\n  stepId: data.automation.definition.trigger.stepId,\n  inputs: null,\n  outputs: data.event,  // data.event includes user.oauth2 tokens\n}\n```\n\n**Step 4: Result broadcast without sanitization**\n\nThe full result (including `trigger.outputs.user.oauth2`) is exposed via two vectors:\n\n1. **WebSocket broadcast** — `builderSocket.emitToRoom()` calls `this.io.in(room).emit()` (`packages/server/src/websockets/websocket.ts:291`) which sends to ALL sockets in the app's room, not just the originator.\n\n2. **Test status endpoint** — `recordTestProgress()` stores the result in a Map keyed by `${appId}:${automationId}` with no user isolation (`packages/server/src/automations/testProgress.ts:41-74`). Any builder can call `GET /api/automations/:id/test/status` to retrieve another user's test results.\n\n## PoC\n\nRequires two builder-level users on the same Budibase app, where User A authenticates via SSO/OIDC (Google, Azure AD, etc.) which provides OAuth2 tokens.\n\n```bash\n# Step 1: User A (SSO-authenticated builder) tests an automation asynchronously\ncurl -X POST http://localhost:10000/api/automations/<automation-id>/test?async=true \\\n  -H 'x-budibase-app-id: app_dev_<appid>' \\\n  -H 'Cookie: budibase:auth=<userA_session>' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"row\": {\"tableId\": \"ta_xxx\"}}'\n# Returns: {\"message\": \"Automation test started\"}\n\n# Step 2: User B (another builder on the same app) polls the test status\ncurl -X GET http://localhost:10000/api/automations/<automation-id>/test/status \\\n  -H 'x-budibase-app-id: app_dev_<appid>' \\\n  -H 'Cookie: budibase:auth=<userB_session>'\n\n# Response includes the full automation result with:\n# result.trigger.outputs.user.oauth2.accessToken = \"ya29.a0AfH6SM...\"\n# result.trigger.outputs.user.oauth2.refreshToken = \"1//0eXyz...\"\n```\n\nAdditionally, User B can passively receive the tokens by simply having the Budibase builder open (connected via WebSocket), as the `BuilderSocketEvent.AutomationTestProgress` event with `status: \"complete\"` includes the full result payload.\n\n## Impact\n\n- **OAuth2 access tokens** for external services (Google Workspace, Azure AD, GitHub, etc.) are exposed to co-builders of the same app. These tokens can be used to access external APIs as the victim user.\n- **OAuth2 refresh tokens** provide persistent access — an attacker can generate new access tokens even after the original expires, maintaining long-term access to the victim's external service accounts.\n- The attack is passive via WebSocket — an attacker only needs to have the builder UI open to receive tokens when any co-builder tests an automation.\n- Test results persist in memory for 5 minutes (TTL in `testProgress.ts:15`), providing a window for polling-based attacks.\n\n## Recommended Fix\n\nStrip OAuth2 tokens from automation test results before storing/broadcasting them. The tokens are needed during automation execution but should not be included in the result sent to clients.\n\nIn `packages/server/src/api/controllers/automation.ts`, sanitize the result before passing to `emitProgress`:\n\n```typescript\nfunction sanitizeAutomationResult(result: AutomationResults): AutomationResults {\n  const sanitized = cloneDeep(result)\n  if (sanitized.trigger?.outputs?.user?.oauth2) {\n    delete sanitized.trigger.outputs.user.oauth2\n  }\n  for (const step of sanitized.steps || []) {\n    if (step.outputs?.user?.oauth2) {\n      delete step.outputs.user.oauth2\n    }\n  }\n  return sanitized\n}\n```\n\nApply sanitization in the `emitProgress` callback at line 290 and before returning `ctx.body` at line 342:\n\n```typescript\nemitProgress({\n  status: \"complete\",\n  occurredAt: Date.now(),\n  result: sanitizeAutomationResult(result),\n})\n```\n\nAdditionally, the `testProgress` store should be scoped per-user (keyed by `${appId}:${automationId}:${userId}`) so that one builder's test results are not accessible to another builder via the `testStatus` endpoint.","state":0,"publishedAt":"2026-07-24T21:25:20+00:00","modifiedAt":"2026-08-12T19:26:07.589128+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:L/UI:R/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-gh4h-34gr-87r7","https://github.com/Budibase/budibase/pull/19107","https://github.com/Budibase/budibase/commit/bca426de7dc36d680285295655dc640dea2aab21","https://github.com/Budibase/budibase","https://github.com/Budibase/budibase/releases/tag/3.39.25"],"sourceUrl":"https://github.com/advisories/GHSA-gh4h-34gr-87r7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-gh4h-34gr-87r7","identifiers":["GHSA-gh4h-34gr-87r7","CVE-2026-73308"]},"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}]}