# CVE-2026-112306: NocoBase plugin-collection-sql through 2.2.46 SQL Injection via sqlCollection:setFields

Source: https://aplosec.si/cve/CVE-2026-112306/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-112306

High 8.6 · Reported · No fix listed · CWE-89 · Multiple credited contributors · npm

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

CVE-2026-112306 · published 2026-10-19

In plain words: this type of bug lets someone change the queries sent to the database (SQL injection). No fixed release is listed yet.

## Summary

CVE-2026-112306 affects @nocobase/plugin-collection-sql (npm) through 2.2.46: SQL injection via sqlCollection:setFields (CWE-89). No fixed release is listed. CVSS 4.0 base score 8.6 (High), assigned by VulnCheck. Published 2026-10-19 by VulnCheck. Credit: George Chen, Zachariah Mithani.

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/nocobase-plugin-collection-sql-through-2.2.28-sql-injection-via-sqlcollection-setfields](https://www.vulncheck.com/advisories/nocobase-plugin-collection-sql-through-2.2.28-sql-injection-via-sqlcollection-setfields)

- [Vulnerable codehttps://github.com/nocobase/nocobase/blob/v2.2.28/packages/plugins/@nocobase/plugin-collection-sql/src/server/resources/sql.ts#L14-L104](https://github.com/nocobase/nocobase/blob/v2.2.28/packages/plugins/@nocobase/plugin-collection-sql/src/server/resources/sql.ts#L14-L104)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-112306](https://www.cve.org/CVERecord?id=CVE-2026-112306)

**Severity:** High 8.6 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-112306)

**Package:** @nocobase/plugin-collection-sql

**Ecosystem:** npm

**Affected:** through 2.2.46

**Fixed:** None

**Weakness:** CWE-89

**CNA:** VulnCheck

**Credit:** George Chen finder · Zachariah Mithani finder
