NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. Prior to version 2.0.39, 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. An attacker who can create a record with a malicious string primary key can inject arbitrary SQL when any subsequent request triggers recursive eager loading on that collection. This issue has been patched in version 2.0.39.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| nocobase | nocobase | before 2.0.39 | 2.0.39 | Patch available | CNA |
| — | @nocobase/database (npm) | before 2.0.39 | 2.0.39 | Patch available | GHSA-4948-f92q-f432 |
- nocobase Vendornocobase Affected before 2.0.39 Fixed in 2.0.39 Patch available CNA
- @nocobase/database (npm) Vendor— Affected before 2.0.39 Fixed in 2.0.39 Patch available GHSA-4948-f92q-f432
Remediation
- Fix · CNA nocobase (nocobase) Fixed in 2.0.39
- Fix · GHSA-4948-f92q-f432 @nocobase/database (npm) Fixed in 2.0.39 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41640
- 2026-10-03 Alias added: GHSA-4948-f92q-f432
References
Patch 3
More Nocobase vulnerabilities
- TI-2026-26457 NocoBase Affected by Sandbox Escape to RCE via console._stdout Prototype Chain Traversal in Workflow Script Node CVSS 3.1CRITICAL 10.0
- TI-2026-27069 NocoBase Has SQL Injection via template variable substitution in workflow SQL node CVSS 4.0HIGH 8.5
- TI-2026-30160 NocoBase Vulnerable to SQL Validation Bypass via `sqlCollection:update` Missing `checkSQL` Call CVSS 3.1HIGH 7.2
- TI-2026-29121 NocoBase has SSRF in Workflow HTTP Request and Custom Request Plugins CVSS 4.0MEDIUM 6.4
Sources
- CVE-2026-41640 · CVE Program
- CVE-2026-41640 · NVD
- FIRST EPSS
- GHSA-4948-f92q-f432 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences