CVE-2026-41640 json
NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading
published 2026-04-22 6 mo ago modified 2026-06-17 4 mo ago also EUVD-2026-28261 , GHSA-4948-f92q-f432
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known, plus a Nuclei check
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.
Patch / fix
- npm @nocobase/database 2.0.39
- nocobase nocobase 2.0.39
- github.com/nocobase/nocobase@202e2b8 commit
- github.com/nocobase/nocobase#9133 pull request
- github.com/nocobase/nocobase/releases/tag/v2.0.39 release
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 6 mo ago
Exploit prediction
1.88% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template NocoBase - SQL Injection nuclei detection template
- github.com https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @nocobase/database | <2.0.39 |
2.0.39 |
Affected products
- nocobase nocobase
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/nocobase/nocobase/pull/9133
web, issue-tracking, patch
-
github.com
/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604
web, patch
-
github.com
/nocobase/nocobase/releases/tag/v2.0.39
web, patch, release-notes
-
github.com
/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432
exploit, web, mitigation, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-41640
advisory
-
github.com
/nocobase/nocobase
package
Sources
- CVE List CVE-2026-41640
- GitHub Advisory GHSA-4948-f92q-f432
- NVD CVE-2026-41640
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.