CVE-2026-112306

NocoBase plugin-collection-sql through 2.2.46 SQL Injection via sqlCollection:setFields

Published Oct 19, 2026 CVSS 4.0 · 8.6 High EPSS < 1% KEV · Not listed
Description
NocoBase @nocobase/plugin-collection-sql through 2.2.46 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.

Analysis

AI-generated

Technical impact

The vulnerability is an SQL injection flaw in the NocoBase @nocobase/plugin-collection-sql module, where privileged users can store unvalidated SQL by bypassing the checkSQL() function via the sqlCollection:setFields action. Attackers holding the collection‑sql snippet can replace a benign collection query with dangerous statements executed on reload, enabling them to read sensitive system tables such as pg_shadow or call functions like pg_read_file.

Affected Systems

This flaw affects NocoBase’s plugin‑collection‑sql through version 2.2.46. 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 the EPSS score of 0.00311 (~<1%) indicates a very low but nonzero likelihood of exploitation, while 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, enabling the attacker to 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.

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.46 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 November 15, 2026 at 11:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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. NocoBase @nocobase/plugin-collection-sql through 2.2.46 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 NocoBase plugin-collection-sql through 2.2.46 SQL Injection via sqlCollection:setFields
Type Values Removed Values Added
First Time appeared Nocobase
Nocobase nocobase
Vendors & Products Nocobase
Nocobase nocobase
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 13, 2026, 3:12 PM
Reserved
Oct 19, 2026, 2:14 PM
Status
Deferred
Published
Oct 19, 2026, 4:17 PM
Modified
Nov 13, 2026, 3:17 PM