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 package | Versions | Reported by |
|---|---|---|
| nocodb nocodb | < 0.301.3, before 0.301.3 | CVE List, NVD |
| nocodb (npm) | before 0.301.3 | GitHub Advisory Database |
All scores
| GitHub_M | 6.2medium CVSS:4.0 | CVSS: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 |
| GitHub | medium CVSS:4.0 | CVSS: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 |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-28399 changed 2026-03-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-45rp-9p97-h852 changed 2026-11-05 | CC-BY-4.0 |
| NVD | CVE-2026-28399 changed 2026-06-17 | Public domain |