Vulnerabilities/

@nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading

Severity:
High

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:

References

Related Issues

Tags:
npm
@nocobase/database
Anything's wrong? Let us know Last updated on May 08, 2026