SCA: security update for @nocobase/database (GHSA-4948-f92q-f432)

high Tenable Cloud Security Plugin ID 440761

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2026-41640)

Solution

Update the @nocobase/database library and its related packages to version 2.0.39 or later.

See Also

https://github.com/advisories/GHSA-4948-f92q-f432

Plugin Details

Severity: High

ID: 440761

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 4/23/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.88

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2026-41640

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/22/2026

Vulnerability Publication Date: 4/22/2026

Reference Information

CVE: CVE-2026-41640

cwe: CWE-89