{"id":"CVE-2026-52887","published":"2026-07-15T20:16:43Z","modified":"2026-07-20T14:39:47Z","title":"NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE","vendor":"nocobase","product":"nocobase","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00892,"percentile":0.60297,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/nocobase/nocobase/security/advisories/GHSA-p849-8hwh-84j9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nocobase/nocobase/commit/68d64e3fcfb8be2ae4f3bfc9e1ee3f85b87c89ce","tags":["x_refsource_MISC"]},{"url":"https://github.com/nocobase/nocobase/releases/tag/v2.0.61","tags":["x_refsource_MISC"]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":12.06},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-08-03","earliestUrl":"https://github.com/BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE","repos":[{"name":"BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE","url":"https://github.com/BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE","stars":0,"created":"2026-08-03"},{"name":"pentrestion/nocobase-cve-2026-52887","url":"https://github.com/pentrestion/nocobase-cve-2026-52887","stars":0,"created":"2026-10-21"}]},"first":{"date":"2026-08-03","source":"PoC-in-GitHub","url":"https://github.com/BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE"},"provenance":"source"},"vendorSlug":"nocobase","affectedVersions":[{"vendor":"nocobase","product":"nocobase","versions":["< 2.0.61"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-20T14:39:37.974692Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nocobase/plugin-notification-in-app-message","vulnerableRanges":["<2.0.61"],"patched":["2.0.61"],"from":["GHSA-p849-8hwh-84j9"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection in NocoBase's in-app message notification plugin (@nocobase/plugin-notification-in-app-message), where the filter value on the GET /api/myInAppChannels:list endpoint is inserted unescaped into a raw SQL template. An attacker who has signed up for an account on an affected release, prior to 2.0.61, can exploit this over the network with no additional user interaction to run stacked PostgreSQL statements, and potentially execute operating system commands via COPY ... TO PROGRAM.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:19Z"},"euvd":{"id":"EUVD-2026-44802","exploited":false,"provenance":"source"}}