GitHub Advisoryadvisory · npm
GHSA-p8wx-5f39-w3x4 NocoDB: SQL Injection via Column Title in Bulk GroupBy
MEDIUM
Official page ↗
- Aliases
- CVE-2026-47384
- Ecosystem
- npm
- Packages
- nocodb
- Severity
- Moderate
- CVSS vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
- Weaknesses
- CWE-89
- Reviewed
- 2026-06-05
Affected packages
• npm nocodb: < 2026.05.1 → fixed in 2026.05.1
Description
Summary
An authenticated user with column-create permission can inject SQL into the bulk groupBy
endpoint by setting a column's title to a SQL fragment.
Details
The bulk groupBy path in `group-by.ts` builds three database-specific `knex.raw()`
aggregations that interpolate the request's `column_name` directly into the SQL string.
Column lookup in `data-table.service.ts` matches on both the sanitized `column_name`
field and the free-text `title`, so a title containing a SQL fragment bypasses the
public endpoint's existing column allowlist and reaches the query builder unescaped.
Impact
SQL injection against the connected database with read access to any expression an
attacker can place in a column title. Exploitation requires an authenticated session
with permission to create or rename columns.
Credit
This issue was reported by @geo-chen.
Related
Alias · CVE (1)
- CVE-2026-47384 NocoDB is software for building databases as spreadsheets. vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness