{"id":"CVE-2026-28399","aliases":["GHSA-45rp-9p97-h852"],"url":"https://o3.security/vulnerability/CVE-2026-28399","summary":"NocoDB: SQL Injection via DATEADD Formula","details":"### Summary\nAn authenticated user with Creator role can inject arbitrary SQL via the DATEADD formula's unit parameter.\n\n### Details\nThe 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.\n\n### Impact\nSQL injection allowing data exfiltration or modification, scoped to the connected database.\n\n### Credit\nThis issue was reported by [@q1uf3ng](https://github.com/q1uf3ng).","published":"2026-03-02T16:19:42.424Z","modified":"2026-08-12T03:51:28.534144860Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"nocodb","fixedVersion":"0.301.3"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/nocodb/nocodb/releases/tag/0.301.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/28xxx/CVE-2026-28399.json"},{"type":"ADVISORY","url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-45rp-9p97-h852"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28399"},{"type":"PACKAGE","url":"https://github.com/nocodb/nocodb"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:28.534144860Z"}}