CVE-2026-47375 NocoDB: Postgres SQL Injection in Formula `ARRAYSORT`

Medium 6.0 Published Updated

Authenticated users can inject SQL via the ARRAYSORT formula in Postgres-backed NocoDB instances, enabling arbitrary code execution and data access.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-47375?

CVE-2026-47375 is a medium-severity SQL injection vulnerability in nocodb, published on 23 Jun 2026. An attacker needs administrator access to exploit it, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2026-47375?

2 open source packages ship an affected version, including nocodb.

PackageAffectedFixed in
nocodb npmAll versions2026.04.1
nocodb npmAll versions2026.04.1

How do I fix CVE-2026-47375?

Upgrade nocodb to 2026.04.1 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-47375 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47375 exists.

Sources

Also known as GHSA-cxv7-gmmp-228p.

Is CVE-2026-47375 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free