---
id: CVE-2026-112306
title: >-
  NocoBase plugin-collection-sql through 2.2.28 SQL Injection via
  sqlCollection:setFields
summary: >-
  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 t…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-89
vendor: nocobase
product: nocobase
affected:
  - nocobase <= 2.2.28
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-19T15:59:02.659152Z'
published: '2026-10-19'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T16:33:44.883Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-112306'
references:
  - url: 'https://github.com/nocobase/nocobase/issues/10629'
  - url: >-
      https://github.com/nocobase/nocobase/blob/v2.2.28/packages/plugins/@nocobase/plugin-collection-sql/src/server/resources/sql.ts#L14-L104
  - url: 'https://github.com/nocobase/nocobase'
  - url: >-
      https://www.vulncheck.com/advisories/nocobase-plugin-collection-sql-through-2.2.28-sql-injection-via-sqlcollection-setfields
    label: >-
      VulnCheck Advisory: NocoBase plugin-collection-sql through 2.2.28 SQL
      Injection via sqlCollection:setFields
tags:
  - cve.org
ingestedAt: '2026-10-19T16:32:30.082Z'
---

## Overview

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.

## Affected

- `nocobase <= 2.2.28`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
