CVE-2026-41640
HIGH 8.8CVSS 3.1@nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading
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.
- Published
- 7 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-89
- Also known as
- GHSA-4948-f92q-f432
- Sources
- NVDJSONOSV GHSA-4948-f92q-f432JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nocobase | nocobasecpe:2.3:a:nocobase:nocobase:*:*:*:*:*:*:*:* |
< 2.0.39 | 2.0.39 |
| OSV | npm | @nocobase/database | < 2.0.39 | 2.0.39 |
References
- https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604 · Patch, WEB
- https://github.com/nocobase/nocobase/pull/9133 · Issue Tracking, Patch, WEB
- https://github.com/nocobase/nocobase/releases/tag/v2.0.39 · Patch, Release Notes, WEB
- https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432 · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41640 · ADVISORY
- https://github.com/nocobase/nocobase · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 7 May 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 22 Apr 2026)