CVE-2026-41640
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.
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-05-07 |
Timeline
- 2026-04-22GitHub advisory published (GHSA-4948-f92q-f432)15 days before publication
- 2026-05-07Published by the CNA04:09 UTC
- 2026-05-07CISA SSVC decision recordedsame day
Exploit and advisory records
Nuclei templates:
- CVE-2026-41640: NocoBase - SQL Injection
GitHub advisory GHSA-4948-f92q-f432, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @nocobase/database | before 2.0.39 | 2.0.39 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nocobase nocobase | before 2.0.39fixed in 2.0.39 | 2.0.39 |
References
- https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604
- https://github.com/nocobase/nocobase/pull/9133
- https://github.com/nocobase/nocobase/releases/tag/v2.0.39
- https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-41640'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-41640'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-41640'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-41640'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).