An authenticated user with Creator role can inject arbitrary SQL via the DATEADD formula's unit parameter.
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.
SQL injection allowing data exfiltration or modification, scoped to the connected database.
This issue was reported by @q1uf3ng.
{
"nvd_published_at": "2026-03-02T17:16:35Z",
"github_reviewed_at": "2026-03-03T20:58:55Z",
"cwe_ids": [
"CWE-89"
],
"severity": "MODERATE",
"github_reviewed": true
}