{"id":"CVE-2026-112306","revision":"36ed53a1925145a29b6e5d551ad26f60","records":[{"revision":"36ed53a1925145a29b6e5d551ad26f60","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-112306","aliases":[],"title":"NocoBase plugin-collection-sql through 2.2.28 SQL Injection via sqlCollection:setFields","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.","state":0,"publishedAt":"2026-10-19T15:28:56.45+00:00","modifiedAt":"2026-10-19T16:33:44.883+00:00","affected":[{"ecosystem":"https://github.com/nocobase/nocobase","name":"nocobase","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"nocobase\",\n                    \"product\": \"nocobase\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThanOrEqual\": \"2.2.28\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"collectionURL\": \"https://github.com/nocobase/nocobase\",\n                    \"repo\": \"https://github.com/nocobase/nocobase\"\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":8.6,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"severity":"HIGH"}],"references":["https://github.com/nocobase/nocobase/issues/10629","https://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","https://www.vulncheck.com/advisories/nocobase-plugin-collection-sql-through-2.2.28-sql-injection-via-sqlcollection-setfields"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112306","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-112306","identifiers":["CVE-2026-112306"]},"retained":false,"historicalAffected":[]}],"coverage":[]}