Description
NocoBase @nocobase/plugin-collection-sql through 2.2.28 contains an SQL injection vulnerability that allows privileged users to store unvalidated SQL by bypassing checkSQL() through the sqlCollection:setFields action. Attackers holding the collection-sql snippet can replace a benign collection query with dangerous statements executed on reload, reading pg_shadow password hashes or calling pg_read_file.
Published: 2026-10-19
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: SQL injection allowing privileged users to read sensitive database tables such as pg_shadow
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an SQL injection flaw in the plugin-collection-sql module of NocoBase, where the checkSQL() validation is bypassed in the sqlCollection:setFields action. This allows a user with sufficient privileges to inject arbitrary SQL commands that execute when the collection is reloaded, enabling the attacker to read restricted system tables like pg_shadow that contain password hashes or to invoke functions such as pg_read_file. The weakness corresponds to CWE-89 and results in confidential data disclosure and potential credential compromise.

Affected Systems

This flaw affects NocoBase’s plugin‑collection‑sql up to and including version 2.2.28. Any deployment of NocoBase using this plugin package and running that version is susceptible.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity, and while a current EPSS score is not available, the lack of listing in the CISA KEV catalog does not reduce the inherent risk. The attack requires a privileged user with access to the plugin’s snippet editor; the attacker can then inject harmful SQL that runs with the application’s database privileges, allowing data exfiltration. Given the potential for credential theft and the likely ease of exploitation for an insider or a compromised account, the risk to affected systems is significant and warrants urgent remediation.

Generated by OpenCVE AI on October 19, 2026 at 16:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest NocoBase release or upgrade the plugin‑collection‑sql package to a version newer than 2.2.28 so that the checkSQL() validation is restored.
  • Restrict privileged access to the plugin’s SQL snippet editor, applying the principle of least privilege to users who can configure collections.
  • Enable database audit logging or implement monitoring to detect unexpected SQL statements from plugin executions and investigate any anomalies promptly.

Generated by OpenCVE AI on October 19, 2026 at 16:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Nocobase
Nocobase nocobase
Vendors & Products Nocobase
Nocobase nocobase

Mon, 19 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
Description NocoBase @nocobase/plugin-collection-sql through 2.2.28 contains an SQL injection vulnerability that allows privileged users to store unvalidated SQL by bypassing checkSQL() through the sqlCollection:setFields action. Attackers holding the collection-sql snippet can replace a benign collection query with dangerous statements executed on reload, reading pg_shadow password hashes or calling pg_read_file.
Title NocoBase plugin-collection-sql through 2.2.28 SQL Injection via sqlCollection:setFields
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Nocobase Nocobase
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T16:33:44.883Z

Reserved: 2026-10-19T14:14:28.386Z

Link: CVE-2026-112306

cve-icon Vulnrichment

Updated: 2026-10-19T15:59:07.906Z

cve-icon NVD

Status : Deferred

Published: 2026-10-19T16:17:06.570

Modified: 2026-10-19T17:17:15.670

Link: CVE-2026-112306

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T20:00:04Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')