SQL injection in NocoBase plugin-collection-sql via setFields
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
The NocoBase @nocobase/plugin-collection-sql package through 2.2.28 contains an SQL injection flaw (CWE-89). Its sqlCollection:setFields action stores unvalidated SQL by bypassing checkSQL(). A privileged user who holds the collection-sql snippet can replace a benign collection query with dangerous statements that run on reload, such as reading pg_shadow password hashes or calling pg_read_file.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for NocoBase.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Timeline
- 2026-10-19 Threatist record created from CVE-2026-112306
- 2026-10-20 Alias added: GHSA-j67h-xf8r-r323
References
More nocobase vulnerabilities
- TI-2026-37983 NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE CVSS 3.1CRITICAL 10.0
- TI-2026-26457 NocoBase Affected by Sandbox Escape to RCE via console._stdout Prototype Chain Traversal in Workflow Script Node CVSS 3.1CRITICAL 10.0
- TI-2026-27069 NocoBase Has SQL Injection via template variable substitution in workflow SQL node CVSS 4.0HIGH 8.5
- TI-2026-30159 NocoBase Vulnerable to SQL Injection via String Concatenation in Recursive Eager Loading CVSS 3.1HIGH 8.8
- TI-2026-05461 nocobase plugin-workflow-javascript Vm.js createSafeConsole sandbox CVSS 4.0MEDIUM 6.9
- TI-2026-30160 NocoBase Vulnerable to SQL Validation Bypass via `sqlCollection:update` Missing `checkSQL` Call CVSS 3.1HIGH 7.2
Sources
- CVE-2026-112306 · CVE Program
- CVE-2026-112306 · NVD
- FIRST EPSS
- GHSA-j67h-xf8r-r323 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences