{"answers":{"affected":"2 open source packages ship an affected version, including @nocobase/plugin-notification-in-app-message.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52887 exists.","fix":"Upgrade @nocobase/plugin-notification-in-app-message to 2.0.61 or later.","what":"CVE-2026-52887 is a critical SQL injection vulnerability in nocobase, published on 15 Jul 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-52887 and fix it if it is affected.\n\nWhat it is: CVE-2026-52887 is a critical SQL injection vulnerability in nocobase, published on 15 Jul 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-52887 exists.\n\nAffected packages and fixed versions:\n- @nocobase/plugin-notification-in-app-message (npm): affected all versions; fixed in 2.0.61\n- @nocobase/plugin-notification-in-app-message (npm): affected all versions; fixed in 2.0.61\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-52887/ (Markdown: https://insights.sbomify.com/CVE-2026-52887/index.md)","id":"CVE-2026-52887","markdown":"https://insights.sbomify.com/CVE-2026-52887/index.md","name":"CVE-2026-52887","record":{"aliases":["GHSA-p849-8hwh-84j9"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"NocoBase no-code platform","requires_auth":"none","summary":"Authenticated users can exploit SQL injection in the notification plugin to execute arbitrary PostgreSQL commands and achieve remote code execution.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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":"NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. Prior to 2.0.61, NocoBase @nocobase/plugin-notification-in-app-message exposed GET /api/myInAppChannels:list, where the filter[latestMsgReceiveTimestamp][$lt] value was inserted into a Sequelize.literal() template string without escaping or parameter binding, allowing a signed-up authenticated user to run stacked PostgreSQL statements and potentially execute commands with COPY ... TO PROGRAM. This vulnerability is fixed in 2.0.61.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-08-03","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-03T03:54:35Z","kind":"github_poc","ref":"https://github.com/BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE","stars":0,"title":"CVE-2026-52887 — NocoBase SQL injection -\u003e PostgreSQL-superuser RCE (myInAppChannels:list filter, CVSS 10.0). Author PoC + source analysis + docker lab."},{"date":"2026-10-21T15:50:48Z","kind":"github_poc","ref":"https://github.com/pentrestion/nocobase-cve-2026-52887","stars":0,"title":"NocoBase security research and exploitation notes for CVE-2026-52887, structured for documentation and reproduction scripts."}],"tier":"weaponised"},"has_fix":true,"headline":"NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE","id":"CVE-2026-52887","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"NocoBase: Sensitive Data Exposure via SQL Blacklist Bypass","id":"CVE-2026-52888"},"packages":[{"ecosystem":"npm","fixed":["2.0.61"],"introduced":["0"],"last_affected":[],"package":"@nocobase/plugin-notification-in-app-message","purl":null,"source":"GHSA-p849-8hwh-84j9"},{"ecosystem":"npm","fixed":["2.0.61"],"introduced":["0"],"last_affected":[],"package":"@nocobase/plugin-notification-in-app-message","purl":"pkg:npm/%40nocobase/plugin-notification-in-app-message","source":"GHSA-p849-8hwh-84j9"}],"prev":{"headline":"Notepad++: session.xml backupFilePath starts_with Bypass","id":"CVE-2026-52886"},"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["nocobase"]},"summary":"Authenticated users can exploit SQL injection in the notification plugin to execute arbitrary PostgreSQL commands and achieve remote code execution.","url":"https://insights.sbomify.com/CVE-2026-52887/"}