{"id":"CVE-2026-41640","state":"PUBLISHED","title":"NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading","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.","publishedAt":"2026-05-07T04:09:59.264Z","updatedAt":"2026-05-07T12:55:04.738Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["nocobase nocobase"],"affected":[{"vendor":"nocobase","product":"nocobase","versions":[{"version":"< 2.0.39","status":"affected"}]}],"references":["https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432","https://github.com/nocobase/nocobase/pull/9133","https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604","https://github.com/nocobase/nocobase/releases/tag/v2.0.39"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/41xxx/CVE-2026-41640.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-41640","state":"PUBLISHED","datePublished":"2026-05-07T04:09:59.264Z","dateUpdated":"2026-05-07T12:55:04.738Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-21T23:58:43.801Z"},"containers":{"cna":{"title":"NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading","descriptions":[{"lang":"en","value":"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":[{"vendor":"nocobase","product":"nocobase","versions":[{"version":"< 2.0.39","status":"affected"}]}],"references":[{"url":"https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432","name":"https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nocobase/nocobase/pull/9133","name":"https://github.com/nocobase/nocobase/pull/9133","tags":["x_refsource_MISC"]},{"url":"https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604","name":"https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604","tags":["x_refsource_MISC"]},{"url":"https://github.com/nocobase/nocobase/releases/tag/v2.0.39","name":"https://github.com/nocobase/nocobase/releases/tag/v2.0.39","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-07T04:09:59.264Z"},"source":{"advisory":"GHSA-4948-f92q-f432","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-07T12:54:23.331234Z","id":"CVE-2026-41640","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-07T12:55:04.738Z"}}]}}}