{"answers":{"affected":"2 open source packages ship an affected version, including @budibase/server. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50137 exists.","fix":"Upgrade @budibase/server to 3.39.0 or later.","what":"CVE-2026-50137 is a high-severity missing authorization vulnerability in budibase, published on 26 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-50137 and fix it if it is affected.\n\nWhat it is: CVE-2026-50137 is a high-severity missing authorization vulnerability in budibase, published on 26 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50137 exists.\n\nAffected packages and fixed versions:\n- @budibase/server (npm): affected all versions; fixed in 3.39.0\n- @budibase/server (npm): affected all versions; fixed in 3.39.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-50137/ (Markdown: https://insights.sbomify.com/CVE-2026-50137/index.md)","id":"CVE-2026-50137","markdown":"https://insights.sbomify.com/CVE-2026-50137/index.md","name":"CVE-2026-50137","record":{"aliases":["GHSA-35c4-rvc8-frhm"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Budibase low-code platform","requires_auth":"none","summary":"Unauthenticated attackers can mint S3 pre-signed URLs using stored IAM credentials, allowing unauthorized writes to arbitrary buckets.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"budibase","vendor":"budibase"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"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's 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's 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's 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=. auth.buildAuthMiddleware([], { publicAllowed: true }) runs before any of this and explicitly allows anonymous requests. The currentWorkspace middleware's \"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Budibase: POST /api/attachments/:datasourceId/url is unauthenticated and lets anonymous callers mint S3 PUT pre-signed URLs using stored datasource IAM credentials","id":"CVE-2026-50137","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"goshs: WebDAV listener ignores --read-only, --upload-only, and --no-delete mode flags","id":"CVE-2026-50138"},"packages":[{"ecosystem":"npm","fixed":["3.39.0"],"introduced":["0"],"last_affected":[],"package":"@budibase/server","purl":null,"source":"GHSA-35c4-rvc8-frhm"},{"ecosystem":"npm","fixed":["3.39.0"],"introduced":["0"],"last_affected":[],"package":"@budibase/server","purl":"pkg:npm/%40budibase/server","source":"GHSA-35c4-rvc8-frhm"}],"prev":{"headline":"Budibase: Unauthenticated S3 signed upload URL generation allows arbitrary writes with stored datasource credentials","id":"CVE-2026-50136"},"products":["budibase"],"published":"2026-06-26","related":[{"cvss_score":10,"headline":"Budibase: Anonymous NoSQL operator injection via published-app query templates","id":"CVE-2026-54350","kev_date_added":null,"published":"2026-06-26"},{"cvss_score":9.9,"headline":"Budibase Vulnerable to Remote Code Execution via Unsafe eval() in View Filter Map Function (Budibase Cloud)","id":"CVE-2026-27702","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":9.6,"headline":"Budibase: Arbitrary file read by workspace-builder via PWA-zip symlink upload","id":"CVE-2026-54352","kev_date_added":null,"published":"2026-06-26"},{"cvss_score":9.6,"headline":"Budibase: Server-Side Request Forgery via REST Connector with Empty Default Blacklist","id":"CVE-2026-31818","kev_date_added":null,"published":"2026-04-03"},{"cvss_score":9.6,"headline":"Budibase PWA ZIP Upload Path Traversal Allows Reading Arbitrary Server Files Including All Environment Secrets","id":"CVE-2026-30240","kev_date_added":null,"published":"2026-03-09"},{"cvss_score":9.1,"headline":"Budibase: Authentication Bypass via Unanchored Regex in Public Endpoint Matcher — Unauthenticated Access to Protected Endpoints","id":"CVE-2026-41428","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":9.1,"headline":"Budibase: Unauthenticated Remote Code Execution via Webhook Trigger and Bash Automation Step","id":"CVE-2026-35216","kev_date_added":null,"published":"2026-04-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-29","vendors":["Budibase"]},"summary":"Unauthenticated attackers can mint S3 pre-signed URLs using stored IAM credentials, allowing unauthorized writes to arbitrary buckets.","url":"https://insights.sbomify.com/CVE-2026-50137/"}