Skip to content
OpenAdvisories
Medium · 6.0 CVE-2026-47375 EUVD-2026-38628GHSA-cxv7-gmmp-228p

NocoDB: Postgres SQL Injection in Formula `ARRAYSORT`

Published Jun 23, 2026 · Updated Jun 24, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
nocodb nocodb < 2026.04.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nocodb < 2026.04.1 2026.04.1 GHSA-cxv7-gmmp-228p

References