{"id":"CVE-2026-28399","aliases":["CVE-2026-28399","GHSA-45rp-9p97-h852"],"related":[],"kind":"vulnerability","state":"published","title":"NocoDB: SQL Injection via DATEADD Formula","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-02T16:19:42.424Z","modified":"2026-11-05T22:45:04.892Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 0.301.3","status":"affected"}],"vendor":"nocodb","product":"nocodb","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.301.3"}],"ecosystem":"npm","package":"nocodb","purl":"pkg:npm/nocodb","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.301.3"}],"vendor":"nocodb","product":"nocodb","cpe":"cpe:2.3:a:nocodb:nocodb:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nocodb/nocodb/security/advisories/GHSA-45rp-9p97-h852","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nocodb/nocodb/releases/tag/0.301.3","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28399","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nocodb/nocodb/commit/8efd6b42a13d7d816c9cbda7b81da1539f9f8590","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nocodb/nocodb","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-03-03T15:53:44.335Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-28399","url":"https://www.cve.org/CVERecord?id=CVE-2026-28399","licence":"CVE Terms of Use","modified":"2026-03-03T15:53:53.938Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-45rp-9p97-h852","url":"https://github.com/advisories/GHSA-45rp-9p97-h852","licence":"CC-BY-4.0","modified":"2026-11-05T22:45:04.892Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-28399","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-28399","licence":"Public domain","modified":"2026-06-17T10:28:33.123Z"}],"updatedAt":"2026-11-25T22:59:15.100Z","epss":{"score":0.00371,"percentile":0.33077,"date":"2026-12-01T12:00:22.000Z"}}