CVE-2026-28399

EPSS 0.07%

NocoDB Vulnerable to SQL Injection via DATEADD Formula

發布日:2026/3/3修改日:2026/3/4

描述

### 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](https://github.com/q1uf3ng).

受影響套件(1)

CVSS 分數

來源版本嚴重程度向量
osvCVSS 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

參考連結(4)