{
  "id": "CVE-2026-41640",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-41640",
  "published_at": "2026-05-07T04:09:59.264Z",
  "title": "NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading",
  "vendor": "nocobase",
  "product": "nocobase",
  "cvss": {
    "score": 8.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-04-23T09:30:40Z",
    "first_seen_at": null,
    "days_after_publication": -13.8,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-41640.yaml"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:nocobase:nocobase:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "nocobase",
        "product": "nocobase",
        "ranges": [
          "\u003c 2.0.39"
        ],
        "fixed_in": [
          "2.0.39"
        ]
      }
    ],
    "upgrade": [
      "Upgrade nocobase to 2.0.39 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/nocobase/nocobase/security/advisories/GHSA-4948-f92q-f432"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/nocobase/nocobase/pull/9133"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/nocobase/nocobase/commit/202e2b8efe44ba90adbf1087f6f70881ff947604"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/nocobase/nocobase/releases/tag/v2.0.39"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-41640.yaml",
      "source": "nuclei",
      "title": "nuclei template: NocoBase - SQL Injection",
      "published_at": "2026-04-23T09:30:40Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
