Description
The queryParentSQL() function in the core database package constructs a recursive CTE query by joining nodeIds with string concatenation instead of using parameterized queries. The nodeIds array contains primary key values read from database rows.
Recommendation
Update the @nocobase/database package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.0.39
- Patched version(s): 2.0.39
References
Could your website be exposed too?
SmartScanner can check your website for @nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Kysely has a MySQL SQL Injection via Insufficient Backslash Escaping in `sql.lit(string)` usage or similar methods that - CVE-2026-33468
- Payload has an SQL Injection via Query Handling - CVE-2026-34747
- Kysely has a MySQL SQL Injection via Backslash Escape Bypass in non-type-safe usage of JSON path keys. - CVE-2026-33442
- Drizzle ORM has SQL injection via improperly escaped SQL identifiers - CVE-2026-39356


