{"answers":{"affected":"2 open source packages ship an affected version, including budibase.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-64657 exists.","fix":"Upgrade budibase to 3.39.19 or later.","what":"CVE-2026-64657 is a high-severity SQL injection vulnerability in budibase, published on 17 Aug 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-64657 and fix it if it is affected.\n\nWhat it is: CVE-2026-64657 is a high-severity SQL injection vulnerability in budibase, published on 17 Aug 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-64657 exists.\n\nAffected packages and fixed versions:\n- budibase (npm): affected all versions; fixed in 3.39.19\n- budibase (npm): affected all versions; fixed in 3.39.19\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-64657/ (Markdown: https://insights.sbomify.com/CVE-2026-64657/index.md)","id":"CVE-2026-64657","markdown":"https://insights.sbomify.com/CVE-2026-64657/index.md","name":"CVE-2026-64657","record":{"aliases":["GHSA-qqf5-x7mj-v43p"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Low-code platform","requires_auth":"high_privilege","summary":"An authenticated administrator can execute arbitrary SQL via unescaped schema fields in the PostgreSQL connector, impacting data integrity and confidentiality.","user_interaction":"required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"Budibase is an open-source low-code platform. Prior to 3.39.19, the PostgreSQL datasource connector in packages/server/src/integrations/postgres.ts interpolates the user-controlled schema configuration field into a SET search_path statement without escaping embedded double quotes, allowing an authenticated administrator who saves or tests the datasource to execute arbitrary SQL through the simple query protocol. This issue is fixed in version 3.39.19.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Budibase: Database Connector SQL Injections in PostgreSQL, MS SQL, and MySQL","id":"CVE-2026-64657","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Statamic: Missing authorization on navigation endpoint allows disclosure of restricted entries","id":"CVE-2026-64662"},"packages":[{"ecosystem":"npm","fixed":["3.39.19"],"introduced":["0"],"last_affected":[],"package":"budibase","purl":null,"source":"GHSA-qqf5-x7mj-v43p"},{"ecosystem":"npm","fixed":["3.39.19"],"introduced":["0"],"last_affected":[],"package":"budibase","purl":"pkg:npm/budibase","source":"GHSA-qqf5-x7mj-v43p"}],"prev":{"headline":"GitHub CLI: Attestation Verification Bypass via Unescaped Regex Metacharacters in SAN Matching","id":"CVE-2026-64655"},"products":["budibase"],"published":"2026-08-17","related":[],"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":"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-08-18","vendors":["Budibase"]},"summary":"An authenticated administrator can execute arbitrary SQL via unescaped schema fields in the PostgreSQL connector, impacting data integrity and confidentiality.","url":"https://insights.sbomify.com/CVE-2026-64657/"}