{"id":"CVE-2026-47375","published":"2026-06-23T20:36:26Z","modified":"2026-06-24T19:33:25Z","title":"NocoDB: Postgres SQL Injection in Formula `ARRAYSORT`","vendor":"nocodb","product":"nocodb","tier":"tail","description":{"text":"NocoDB is software for building databases as spreadsheets. Prior to 2026.04.1, an authenticated user with columnAdd permission on a Postgres-backed base can inject arbitrary SQL into the formula engine via the optional direction argument of ARRAYSORT(...). The value is unrestricted by formula validation and embedded into a knex.raw ORDER BY clause, executing during column creation and on every subsequent record read of the formula column. The vulnerability is specific to the Postgres mapping for ARRAYSORT in packages/nocodb/src/db/functionMappings/pg.ts. This vulnerability is fixed in 2026.04.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00376,"percentile":0.32391,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-cxv7-gmmp-228p","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":6.48},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"nocodb","affectedVersions":[{"vendor":"nocodb","product":"nocodb","versions":["< 2026.04.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-24T19:33:03.566987Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"nocodb","vulnerableRanges":["<2026.04.1"],"patched":["2026.04.1"],"from":["GHSA-cxv7-gmmp-228p"],"provenance":"source"}],"summary":{"text":"NocoDB, a spreadsheet-style database builder, contains a SQL injection flaw in its Postgres function mapping for the ARRAYSORT formula function, specifically in packages/nocodb/src/db/functionMappings/pg.ts. An authenticated user with columnAdd permission on a Postgres-backed base can inject arbitrary SQL through the optional direction argument of ARRAYSORT, which is embedded unsanitised into a raw ORDER BY clause and executes when the column is created and on every subsequent read of that formula column.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:07Z"},"euvd":{"id":"EUVD-2026-38628","exploited":false,"provenance":"source"}}