CVE-2026-28399: NocoDB: SQL Injection via DATEADD Formula

Published Mar 2, 2026
·
Updated

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.

Other sources

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.

— MITRE

Affected Software

3 affected componentsFixes available
NocoDB<0.301.3
NocoDB NocoDB<0.301.3
npm/nocodb<=0.301.2
0.301.3

Event History

Mar 2, 2026
CVE Published
via MITRE·04:19 PM
Data Sourced
via MITRE·04:19 PM
DescriptionWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Mar 3, 2026
Advisory Published
via GitHub·08:58 PM
Data Sourced
via GitHub·08:58 PM
DescriptionWeaknessAffected Software
Jun 8, 58153
Event
via FIRST·10:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-28399?

The severity of CVE-2026-28399 is categorized as high due to the potential for arbitrary SQL injection by authenticated users.

2

How do I fix CVE-2026-28399?

To fix CVE-2026-28399, upgrade NocoDB to version 0.301.3 or later.

3

Who is affected by CVE-2026-28399?

Authenticated users with the Creator role in NocoDB versions prior to 0.301.3 are affected by CVE-2026-28399.

4

What impact does CVE-2026-28399 have on my database?

CVE-2026-28399 allows attackers to execute arbitrary SQL commands, potentially exposing or altering database information.

5

Is there a workaround for CVE-2026-28399 if I can't upgrade NocoDB?

There are no known effective workarounds for CVE-2026-28399, and upgrading is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203