CVE-2026-41640 Details
Description
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.
A SQL injection vulnerability has been identified in NocoBase versions prior to 2.0.39. The issue arises in the queryParentSQL() function within the core database package, where a recursive Common Table Expression (CTE) query is constructed by concatenating nodeIds with strings, rather than using parameterized queries. This flaw allows an attacker to inject arbitrary SQL by creating a record with a malicious string primary key, which is then executed when recursive eager loading is applied to that collection.
Users can update to NocoBase version 2.0.39 or later, where this vulnerability has been patched. Additionally, it is recommended to validate primary key values at the time of record creation to reject or escape any values containing SQL metacharacters.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432 | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604 | [email protected] | Patch |
| https://github.com/nocobase/nocobase/pull/9133 | [email protected] | Issue TrackingPatch |
| https://github.com/nocobase/nocobase/releases/tag/v2.0.39 | [email protected] | PatchRelease Notes |
| https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nocobase nocobase | < 2.0.39 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 12, 2026 | Initial Analysis | [email protected] |
| May 7, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | New CVE Received | [email protected] |