Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with Creator role on MySQL-backed base
-
DeliveryEdit formula field using DATETIME_FORMAT
-
ExploitInsert backslash before quote to break out of string literal
-
ExecutionAppend SQL compiled into DATE_FORMAT pattern
-
PersistField evaluation runs injected SQL as DB user
-
ImpactRead tables outside the base
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated account holding the NocoDB Creator role (or higher) with the ability to add or edit formula fields on a base whose data source is MySQL or MariaDB. The injection is specific to the DATETIME_FORMAT formula function's format argument, which reaches the MySQL DATE_FORMAT handler. Exploitation is LIMITED by several factors: the Creator privilege gate (PR:H); the database engine must be MySQL/MariaDB - PostgreSQL and SQLite bases are not affected; and MySQL servers configured with the NO_BACKSLASH_ESCAPES sql_mode are not vulnerable because backslash escaping is disabled. The injected SQL executes with the privileges of the data source's configured database user, so reachable data is bounded by that user's grants. |
| Impact | This is a genuine but bounded risk, best characterized as a privileged-insider / post-compromise escalation path rather than a mass-exploitable perimeter flaw. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H) scores 7.0 (High): network-reachable and low-complexity, but gated behind PR:H - per the advisory this means an account holding the Creator role on a MySQL/MariaDB-backed base, which is a trusted application role, not an anonymous attacker. That single privilege requirement is the dominant risk-limiting signal: the attacker must already be able to add or edit formula fields. KEV status is not present in the input, so this is not confirmed actively exploited; no EPSS score was supplied, so exploitation probability cannot be quantified; and the references contain only the GHSA advisory with no PoC or exploit reference, so no public exploit identified at time of analysis. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a real-but-not-urgent priority. The signals are internally consistent - there is no CVSS-vs-description conflict here: the description's 'users with Creator role' requirement matches PR:H. The main caveat is missing EPSS and KEV data, which leaves widespread-exploitation likelihood unquantified; given the privilege gate and single-DB-engine scope, targeted abuse by a semi-trusted user is the realistic threat model, not opportunistic internet scanning. |
| Exploit ScenarioDerived | A user who has been granted the Creator role on a NocoDB base whose data source is MySQL or MariaDB creates or edits a formula field using DATETIME_FORMAT with a crafted format argument. By placing a backslash before a quote, they cancel NocoDB's quote-doubling and terminate the DATE_FORMAT string literal early, so the remainder of their format string is compiled as SQL and executed as the data source's database user whenever the field is evaluated - reading data from tables outside the base. No public exploit code is identified at time of analysis, though the advisory describes the exact backslash-before-quote technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
SQL injection in NocoDB versions 2026.07.0 through 2026.9.x (fixed in 2026.10.0) lets a user holding the Creator role break out of a MySQL string literal through the DATETIME_FORMAT formula's format argument, because backslashes were not escaped before the pattern was quoted into a DATE_FORMAT call. The injected SQL runs with the privileges of the base's configured data source user whenever the formula field is evaluated, including on ordinary reads of its table, so an attacker can read tables outside the base - confidentiality impact is high, with a limited availability cost from expensive queries. Exploitation requires an authenticated Creator-level account and a MySQL/MariaDB-backed base (PostgreSQL and SQLite bases are not affected, and MySQL servers running NO_BACKSLASH_ESCAPES are not vulnerable); no public exploit code has been identified at time of analysis and the issue is not in CISA KEV, which is consistent with a bounded, privileged-insider risk rather than a perimeter flaw.
RemediationAI
Vendor-released patch: upgrade NocoDB to 2026.10.0 or later, which escapes backslashes in the format's literal text before the pattern is quoted; the advisory at https://github.com/nocodb/nocodb/security/advisories/GHSA-2ggp-wwhj-f84q is the authoritative reference and the vendor's complete fix. Where immediate upgrade is not possible, reduce exposure by confirming which bases are MySQL/MariaDB-backed, since PostgreSQL and SQLite bases are unaffected, and by tightening who can add or edit formula fields, because the injection requires an account with that capability (the Creator role grants it). Running affected MySQL data sources with the NO_BACKSLASH_ESCAPES sql_mode removes the vector per the advisory, but that is a server-wide change that alters backslash handling for all application SQL and should be validated against existing queries first. Additionally, constrain the grants of each base's configured data source user to only the schemas it legitimately needs, which caps what injected statements can reach but does not remove the injection itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-89 SQL injection arising from incorrect string-literal escaping in a database abstraction layer. NocoDB compiles its formula language to engine-specific SQL; on MySQL, the DATETIME_FORMAT mapping in functionMappings/mysql.ts delegates to datetime-format.mysql.handler.ts, which translates the user-supplied format into a DATE_FORMAT pattern and embeds that pattern as a quoted string inside raw SQL. Validation in extractDatetimeFormat (commonFns.ts) only enforces that the format is a constant string; the handler escaped percent signs in literal text and doubled single quotes but left backslashes untouched. Under MySQL's default sql_mode a backslash escapes the following character, so a backslash placed before a quote cancels the doubling, terminates the literal early, and the remainder of the format is compiled as part of the statement. The statement executes as the data source's database user each time the field is evaluated, so reachable data is bounded by that user's grants. The PostgreSQL and SQLite handlers are unaffected, and MySQL servers configured with NO_BACKSLASH_ESCAPES are not exploitable because backslash escaping is disabled there.
Know when Nocodb gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable low-complexity injection but gated by the privileged Creator role (PR:H); high confidentiality from reading arbitrary reachable tables, no integrity impact described, low availability from expensive queries.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
NocoDB from 2026.07.0 before 2026.10.0 contains an sql injection vulnerability that allows users with Creator role to inject SQL through unescaped backslashes in the DATETIME_FORMAT formula format argument on MySQL-backed bases. Attackers can place a backslash before a quote to terminate the DATE_FORMAT string literal and read any data reachable by the data source's database user, including tables outside the base.
Technical POC Analysis
CWE-89 (SQL injection), specifically a string-literal escape mismatch: the code escapes quotes but not the escape character itself.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity SQL injection vulnerability in NocoDB (versions 2026.07.0 through 2026.9.x) allows authenticated Creator-level users to read database tables outside their permitted base when using MySQL/MariaDB. This poses a data confidentiality risk from privileged insiders, potentially exposing sensitive information.
No vendor-released patch identified at time of analysis; interim mitigations include migrating to PostgreSQL or SQLite, enabling NO_BACKSLASH_ESCAPES on MySQL servers, restricting Creator role assignments, and enforcing least privilege on the data source user.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
NocoDB spreadsheet platform prior to 0.301.0 has a stored XSS vulnerability (CVSS 9.0) that enables code execution throu
Insufficient Session Expiration in GitHub repository nocodb/nocodb prior to 0.91.7+. Rated high severity (CVSS 8.8), thi
Improper Privilege Management in GitHub repository nocodb/nocodb prior to 0.91.7+. Rated high severity (CVSS 8.8), this
NocoDB through 0.106.0 (or 0.109.1) has a path traversal vulnerability that allows an unauthenticated attacker to access
With this SSRF vulnerability, an attacker can reach internal addresses to make a request as the server and read it's con
Generation of Error Message Containing Sensitive Information in GitHub repository nocodb/nocodb prior to 0.91.7+. Rated
Improper Input Validation in GitHub repository nocodb/nocodb prior to 0.96.0. Rated medium severity (CVSS 6.5), this vul
Allocation of Resources Without Limits or Throttling in GitHub repository nocodb/nocodb prior to 0.92.0. Rated medium se
NocoDB versions prior to 0.301.0 contain an open redirect vulnerability in the login flow where the `continueAfterSignIn
NocoDB is software for building databases as spreadsheets. Rated medium severity (CVSS 5.4), this vulnerability is remot
SQL injection in NocoDB's formula query builder lets an authenticated Creator or Owner user persist a crafted parsed_tre
Cross-site Scripting (XSS) - Stored in GitHub repository nocodb/nocodb prior to 0.91.7+. Rated medium severity (CVSS 5.4
EUVD-2026-128768
GHSA-9gfr-57j5-xxq3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB