漏洞描述
NocoBase versions prior to 2.0.39 contain a SQL injection vulnerability in the @nocobase/database package. The queryParentSQL function in eager-loading-tree.ts constructs a recursive CTE query by directly concatenating user-controlled primary key values into the SQL WHERE IN clause without parameterization. An authenticated attacker with record creation permissions on a tree collection with string-type primary keys can inject arbitrary SQL via crafted record identifiers, enabling full database compromise including data exfiltration and modification.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/advisories/GHSA-4948-f92q-f432↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-41640↗github.comhttps://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604↗github.comhttps://github.com/nocobase/nocobase/pull/9133↗github.comhttps://github.com/nocobase/nocobase/releases/tag/v2.0.39↗github.comhttps://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432↗