Skip to content
OpenAdvisories
High · 7.5 Scanner template CVE-2026-41640 EUVD-2026-28261GHSA-4948-f92q-f432

NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading

Published May 7, 2026 · Updated May 7, 2026 · 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.

Affected products

VendorProductAffectedFixed
nocobase nocobase < 2.0.39 —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm @nocobase/database < 2.0.39 2.0.39 GHSA-4948-f92q-f432

References