CVE Catalog

CVE-2026-112306

HighCVSS 7.2
Published: Updated: Translated: NVD NIST

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.

Risk Assessment

A privileged user can access critical data, including password hashes and system files, potentially leading to full database takeover. The risk applies to NocoBase installations with the collection-sql plugin.

Recommendation

Update @nocobase/plugin-collection-sql to a version later than 2.2.28 if available, or restrict permissions to the sqlCollection:setFields action. Implement additional server-side SQL validation.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS