CVE-2026-41640
HighPublic exploit@nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading
Published Apr 22, 2026 · Updated Aug 12, 2026 · Also known as GHSA-4948-f92q-f432
Key Facts
Patch immediately- CVE-2026-41640 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Nocobase, @nocobase/database (npm).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 2.4% probability of exploitation in the next 30 days.
- Fixed versions are available, including @nocobase/database 2.0.39, Nocobase 2.0.39.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
2.4%
Higher than 83.9% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2026-41640 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| NocobaseNocobase | >= < 2.0.39 | 2.0.39 |
| @nocobase/databasenpm | See advisory | 2.0.39 |
Patched Releases
@nocobase/database
2.0.39
Nocobase
2.0.39
Timeline
Publicly disclosed
Apr 22, 2026
Last updated
Aug 12, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41640.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-41640
- articlehttps://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604
- articlehttps://github.com/nocobase/nocobase/pull/9133
FAQ
Common Questions.
NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions.
Affected: Nocobase versions >= < 2.0.39; @nocobase/database (npm). The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including @nocobase/database 2.0.39, Nocobase 2.0.39.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2026-41640 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo