CVE-2026-28399
JSON

6.2medium

NocoDB: SQL Injection via DATEADD Formula

Severity
6.2medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.37% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-45rp-9p97-h852

Description

NocoDB is software for building databases as spreadsheets. Prior to version 0.301.3, an authenticated user with Creator role can inject arbitrary SQL via the DATEADD formula's unit parameter. This issue has been patched in version 0.301.3.

Affected

Product or packageVersionsReported by
nocodb nocodb< 0.301.3, before 0.301.3CVE List, NVD
nocodb (npm)before 0.301.3GitHub Advisory Database

All scores

GitHub_M6.2medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

NocoDB is software for building databases as spreadsheets. Prior to version 0.301.3, an authenticated user with Creator role can inject arbitrary SQL via the DATEADD formula's unit parameter. This issue has been patched in version 0.301.3.

GitHub Advisory Database
Summary

An authenticated user with Creator role can inject arbitrary SQL via the DATEADD formula's unit parameter.

Details

The third argument (unit) of DATEADD was interpolated directly into knex.raw() queries after only stripping quote characters. Validation in formulas.ts only checked Literal AST node types — non-Literal types bypassed validation entirely. Affected MySQL, PostgreSQL, and SQLite function mappings.

Impact

SQL injection allowing data exfiltration or modification, scoped to the connected database.

Credit

This issue was reported by @q1uf3ng.

NVD (es)

NocoDB es un software para construir bases de datos como hojas de cálculo. Antes de la versión 0.301.3, un usuario autenticado con rol de Creador puede inyectar SQL arbitrario a través del parámetro unit de la fórmula DATEADD. Este problema ha sido parcheado en la versión 0.301.3.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-28399 changed 2026-03-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-45rp-9p97-h852 changed 2026-11-05CC-BY-4.0
NVDCVE-2026-28399 changed 2026-06-17Public domain