{"cve":"CVE-2026-41640","nvd":{"published":"2026-05-07T04:16:28.277","modified":"2026-06-17T10:46:55.500","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-89"],"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","https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432"],"products":["nocobase:nocobase"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-41640","score":0.01875,"percentile":0.79401,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4948-f92q-f432","url":"https://osv.dev/vulnerability/GHSA-4948-f92q-f432","summary":"@nocobase/database has SQL Injection via String Concatenation through Recursive Eager Loading","modified":"2026-05-08T20:05:49.510292Z","packages":[{"ecosystem":"npm","name":"@nocobase/database","purl":"pkg:npm/%40nocobase/database","ranges":["<2.0.39"],"fixed":["2.0.39"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}