# CVE-2026-41640: NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.42%, higher than 85% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-22T20:09:02.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-4948-f92q-f432
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nocobase nocobase: < 2.0.39; before 2.0.39
- @nocobase/database (npm): before 2.0.39

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/nocobase/nocobase/pull/9133> (issue-tracking, patch, web)
- <https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604> (patch, web)
- <https://github.com/nocobase/nocobase/releases/tag/v2.0.39> (patch, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41640> (advisory)
- <https://github.com/nocobase/nocobase> (package)

## Sources

- CVE List: [CVE-2026-41640](https://www.cve.org/CVERecord?id=CVE-2026-41640), CVE Terms of Use, modified 2026-05-07
- GitHub Advisory Database: [GHSA-4948-f92q-f432](https://github.com/advisories/GHSA-4948-f92q-f432), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2026-41640](https://nvd.nist.gov/vuln/detail/CVE-2026-41640), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41640 · Whole record: https://cve.day/CVE-2026-41640.json · Rebuilt by cve.day 2026-11-25T22:59:20.847Z
