AploSec / Disclosures / CVE-2026-112306
NocoBase plugin-collection-sql through 2.2.28 SQL Injection via sqlCollection:setFields
CVE-2026-112306 · published 2026-10-19
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 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 with a proof of concept that reproduced against the affected release.
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
- Vulnerable codehttps://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
- Package
- @nocobase/plugin-collection-sql
- Ecosystem
- npm
- Weekly downloads
- 2k
- Affected
- through 2.2.28
- Fixed
- None
- Weakness
- CWE-89
- CNA
- VulnCheck
- Credit
- George Chen, Zachariah Mithani