{"answers":{"affected":"6 open source packages ship an affected version, including @nocobase/plugin-collection-sql.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52888 exists.","fix":"Upgrade @nocobase/plugin-collection-sql to a fixed version for your release line: 2.0.62, 2.1.0-alpha.46 or 2.1.0-beta.45.","what":"CVE-2026-52888 is a medium-severity vulnerability in nocobase, published on 15 Jul 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-52888 and fix it if it is affected.\n\nWhat it is: CVE-2026-52888 is a medium-severity vulnerability in nocobase, published on 15 Jul 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52888 exists.\n\nAffected packages and fixed versions:\n- @nocobase/plugin-collection-sql (npm): affected all versions; fixed in 2.0.62\n- @nocobase/plugin-collection-sql (npm): affected all versions; fixed in 2.0.62\n- @nocobase/plugin-collection-sql (npm): affected from 2.1.0-alpha.1; fixed in 2.1.0-alpha.46\n- @nocobase/plugin-collection-sql (npm): affected from 2.1.0-alpha.1; fixed in 2.1.0-alpha.46\n- @nocobase/plugin-collection-sql (npm): affected from 2.1.0-beta.1; fixed in 2.1.0-beta.45\n- @nocobase/plugin-collection-sql (npm): affected from 2.1.0-beta.1; fixed in 2.1.0-beta.45\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-52888/ (Markdown: https://insights.sbomify.com/CVE-2026-52888/index.md)","id":"CVE-2026-52888","markdown":"https://insights.sbomify.com/CVE-2026-52888/index.md","name":"CVE-2026-52888","record":{"aliases":["GHSA-v8vm-cqh8-q87q"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"NocoBase no-code platform","requires_auth":"high_privilege","summary":"An admin user can bypass SQL restrictions to read sensitive database metadata and password hashes in NocoBase.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. In 2.0.59 and earlier, NocoBase @nocobase/plugin-collection-sql used the checkSQL() function in packages/plugins/@nocobase/plugin-collection-sql/src/server/utils.ts with an incomplete keyword blacklist that did not restrict PostgreSQL system catalog tables such as pg_shadow, pg_roles, and pg_stat_activity, allowing an admin-role user to read password hashes and database metadata through the SQL Collection feature. This vulnerability is fixed in 2.1.0-alpha.46.","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":"NocoBase: Sensitive Data Exposure via SQL Blacklist Bypass","id":"CVE-2026-52888","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":6,"n_references":3,"next":{"headline":"Formie: Server-Side Template Injection in Formie Hidden field defaults","id":"CVE-2026-52889"},"packages":[{"ecosystem":"npm","fixed":["2.0.62"],"introduced":["0"],"last_affected":[],"package":"@nocobase/plugin-collection-sql","purl":null,"source":"GHSA-v8vm-cqh8-q87q"},{"ecosystem":"npm","fixed":["2.0.62"],"introduced":["0"],"last_affected":[],"package":"@nocobase/plugin-collection-sql","purl":"pkg:npm/%40nocobase/plugin-collection-sql","source":"GHSA-v8vm-cqh8-q87q"},{"ecosystem":"npm","fixed":["2.1.0-alpha.46"],"introduced":["2.1.0-alpha.1"],"last_affected":[],"package":"@nocobase/plugin-collection-sql","purl":null,"source":"GHSA-v8vm-cqh8-q87q"},{"ecosystem":"npm","fixed":["2.1.0-alpha.46"],"introduced":["2.1.0-alpha.1"],"last_affected":[],"package":"@nocobase/plugin-collection-sql","purl":"pkg:npm/%40nocobase/plugin-collection-sql","source":"GHSA-v8vm-cqh8-q87q"},{"ecosystem":"npm","fixed":["2.1.0-beta.45"],"introduced":["2.1.0-beta.1"],"last_affected":[],"package":"@nocobase/plugin-collection-sql","purl":null,"source":"GHSA-v8vm-cqh8-q87q"},{"ecosystem":"npm","fixed":["2.1.0-beta.45"],"introduced":["2.1.0-beta.1"],"last_affected":[],"package":"@nocobase/plugin-collection-sql","purl":"pkg:npm/%40nocobase/plugin-collection-sql","source":"GHSA-v8vm-cqh8-q87q"}],"prev":{"headline":"NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE","id":"CVE-2026-52887"},"products":["nocobase"],"published":"2026-07-15","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":"partial"},"state":"PUBLISHED","updated":"2026-07-16","vendors":["nocobase"]},"summary":"An admin user can bypass SQL restrictions to read sensitive database metadata and password hashes in NocoBase.","url":"https://insights.sbomify.com/CVE-2026-52888/"}