{"id":"EUVD-2026-39913","enisaUuid":"f54f89ca-d174-3af8-a64e-4aad47aef8b5","description":"Budibase is an open-source low-code platform. Prior to 3.39.0, an anonymous attacker who knows or can enumerate a workspace id (app_...) and an S3-source datasource id (ds_...) can call this endpoint with no auth and obtain a 15-minute pre-signed PUT URL minted on the victim\u0027s IAM identity. The endpoint also returns the publicUrl so the attacker knows exactly where their PUT lands. Because bucket is attacker-controlled, the attacker can write to any bucket those IAM credentials can write to, not only the bucket the datasource was configured for. The Budibase server route POST /api/attachments/:datasourceId/url (packages/server/src/api/routes/static.ts) is registered with only the recaptcha middleware. There is no authorized(...) middleware in the chain. The controller (packages/server/src/api/controllers/static/index.ts::getSignedUploadURL) looks the requested datasource up, instantiates an AWS S3 client with the datasource\u0027s stored accessKeyId / secretAccessKey, and returns an AWS Signature V4 pre-signed PutObjectCommand URL for the caller-supplied bucket and key. The bucket is not pinned to the datasource\u0027s configured bucket. The workspace context required by sdk.datasources.get is sourced by getWorkspaceIdFromCtx (packages/backend-core/src/utils/utils.ts) from any of: the x-budibase-app-id header, the JSON body appId, a path segment that begins with the workspace prefix, or ?appId\u003d. auth.buildAuthMiddleware([], { publicAllowed: true }) runs before any of this and explicitly allows anonymous requests. The currentWorkspace middleware\u0027s \"deny access to dev preview\" branch only triggers under isBrowser(ctx) \u0026\u0026 !isApiKey(ctx); isBrowser checks the parsed User-Agent for a recognised browser, so any non-browser client (curl, the supplied PoC, any tool not setting a browser UA) is neither and reaches dev workspaces too. This vulnerability is fixed in 3.39.0.","datePublished":"Jun 26, 2026, 8:41:03 PM","dateUpdated":"Jun 29, 2026, 1:18:45 PM","baseScore":8.2,"baseScoreVersion":"4.0","baseScoreVector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","references":"https://github.com/Budibase/budibase/security/advisories/GHSA-35c4-rvc8-frhm\n","aliases":"CVE-2026-50137\nGHSA-35c4-rvc8-frhm\n","assigner":"GitHub_M","epss":0.42,"enisaIdProduct":[{"id":"ddd26d98-ea1a-32d9-a445-e33544a9f725","product":{"name":"budibase","vendor":{"name":"budibase"}},"product_version":"\u003c 3.39.0"}],"enisaIdVendor":[{"id":"ed34d8fe-b1e8-3b1a-910d-64ccd825fd3a","vendor":{"name":"budibase"}}],"enisaIdVulnerability":[{"id":"7e374b96-4fee-352c-b0e2-ee6911a2f319","vulnerability":{"id":"CVE-2026-50137","description":"Budibase is an open-source low-code platform. Prior to 3.39.0, an anonymous attacker who knows or can enumerate a workspace id (app_...) and an S3-source datasource id (ds_...) can call this endpoint with no auth and obtain a 15-minute pre-signed PUT URL minted on the victim\u0027s IAM identity. The endpoint also returns the publicUrl so the attacker knows exactly where their PUT lands. Because bucket is attacker-controlled, the attacker can write to any bucket those IAM credentials can write to, not only the bucket the datasource was configured for. The Budibase server route POST /api/attachments/:datasourceId/url (packages/server/src/api/routes/static.ts) is registered with only the recaptcha middleware. There is no authorized(...) middleware in the chain. The controller (packages/server/src/api/controllers/static/index.ts::getSignedUploadURL) looks the requested datasource up, instantiates an AWS S3 client with the datasource\u0027s stored accessKeyId / secretAccessKey, and returns an AWS Signature V4 pre-signed PutObjectCommand URL for the caller-supplied bucket and key. The bucket is not pinned to the datasource\u0027s configured bucket. The workspace context required by sdk.datasources.get is sourced by getWorkspaceIdFromCtx (packages/backend-core/src/utils/utils.ts) from any of: the x-budibase-app-id header, the JSON body appId, a path segment that begins with the workspace prefix, or ?appId\u003d. auth.buildAuthMiddleware([], { publicAllowed: true }) runs before any of this and explicitly allows anonymous requests. The currentWorkspace middleware\u0027s \"deny access to dev preview\" branch only triggers under isBrowser(ctx) \u0026\u0026 !isApiKey(ctx); isBrowser checks the parsed User-Agent for a recognised browser, so any non-browser client (curl, the supplied PoC, any tool not setting a browser UA) is neither and reaches dev workspaces too. This vulnerability is fixed in 3.39.0.","datePublished":"Jun 26, 2026, 8:41:03 PM","dateUpdated":"Jun 29, 2026, 1:18:45 PM","status":"PUBLISHED","baseScore":8.2,"baseScoreVersion":"4.0","baseScoreVector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","references":"https://github.com/Budibase/budibase/security/advisories/GHSA-35c4-rvc8-frhm\n","enisa_id":"EUVD-2026-39913\n","assigner":"GitHub_M","epss":0.42,"dataProcessed":"Nov 24, 2026, 7:22:31 AM","vulnerabilityProduct":[{"id":"1435ac72-391c-3c9b-82c9-637c8a047fb2","product":{"name":"budibase","vendor":{"name":"budibase"}},"product_version":"\u003c 3.39.0"}],"vulnerabilityVendor":[{"id":"877431e5-4680-34e3-8246-cb4f27ccf543","vendor":{"name":"budibase"}}]}},{"id":"dd04b5b5-2d67-3223-9a2b-2c7fb72f4310","vulnerability":{"id":"GHSA-35c4-rvc8-frhm","description":"Budibase: POST /api/attachments/:datasourceId/url is unauthenticated and lets anonymous callers mint S3 PUT pre-signed URLs using stored datasource IAM credentials","datePublished":"Jun 22, 2026, 11:19:26 PM","dateUpdated":"Jul 21, 2026, 3:04:50 PM","baseScore":0.0,"references":"https://github.com/Budibase/budibase/security/advisories/GHSA-35c4-rvc8-frhm\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-50137\nhttps://github.com/Budibase/budibase\n","enisa_id":"EUVD-2026-39913\n","aliases":"CVE-2026-50137\nGHSA-35c4-rvc8-frhm\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:52:23 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[{"id":"2fe0c306-8b10-35cf-84a6-85d245bc4eed","advisory":{"id":"WID-SEC-W-2026-1714","description":"Budibase: Mehrere Schwachstellen ermöglichen Manipulation von Dateien","summary":"Ein Angreifer kann mehrere Schwachstellen in Budibase ausnutzen, um Dateien zu manipulieren.","datePublished":"May 27, 2026, 10:00:00 PM","dateUpdated":"Jun 28, 2026, 10:00:00 PM","baseScore":0.0,"references":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1714.json\nhttps://wid.cert-bund.de/portal/wid/securityadvisory?name\u003dWID-SEC-2026-1714\n","aliases":"CVE-2026-50137\nCVE-2026-50136\n","source":{"id":8,"name":"csaf_certbund"},"advisoryProduct":[{"id":"3a6d17db-db12-3b3d-b65b-088bbefbbfab","product":{"name":"budibase","vendor":{"name":"budibase"}}},{"id":"68f78067-9813-3f98-b664-d9ca7075078b","product":{"name":"3.39.3","vendor":{"name":"open source"}}},{"id":"b9bfb14f-24cf-3443-9a59-8421d0a4e60b","product":{"name":"3.39.0","vendor":{"name":"open source"}}}]}}]}