CVE-2026-28399
NocoDB Vulnerable to SQL Injection via DATEADD Formula
Auswirkung
### 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).
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | nocodb | <= 0.301.2 | 0.301.3 |
Betroffene Produkte · Nocodb
| Produkt | Betroffene Versionen |
|---|---|
| Nocodb | vor 0.301.3 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/nocodb/nocodb/releases/tag/0.301.3
- https://github.com/nocodb/nocodb/security/advisories/GHSA-45rp-9p97-h852
- https://github.com/advisories/GHSA-45rp-9p97-h852
- https://nvd.nist.gov/vuln/detail/CVE-2026-28399
- https://github.com/nocodb/nocodb/commit/8efd6b42a13d7d816c9cbda7b81da1539f9f8590