Vulnerability library
Security checkMay 08, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated May 08, 2026