# CVE-2026-52888: NocoBase sensitive data exposure via SQL blacklist bypass in SQL Collection

Source: https://junglewise.ai/threats/cve-2026-52888-nocobase-sensitive-data-exposure-via-sql-blacklist-bypass-in-sql  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-15. Updated: 2026-07-28  
License: CC BY 4.0 with a link back

CVE-2026-52888 · Severity: medium · CVSS 6.8 · Published 2026-07-15

NocoBase, a platform for building internal business tools, contains a vulnerability that allows administrative users to bypass security restrictions and access sensitive database information. While these users are intended to manage the application's interface and workflows, this flaw allows them to step outside their authorized boundaries to view internal database password hashes and system configurations. This could lead to a complete compromise of the underlying database, allowing an attacker to read or modify all stored data beyond what the NocoBase application itself controls.

Technologies: [Nocobase](https://junglewise.ai/threats/technologies/nocobase). Vendors: [NocoBase](https://junglewise.ai/threats/vendors/nocobase), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-52888 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-52888 being exploited in the wild.

**How severe is CVE-2026-52888?** Medium severity, with a CVSS score of 6.8, published 15 July 2026.

**Which products and versions are affected?** Nocobase <= 2.0.59; NocoBase Plugin-Collection-Sql < 2.0.62, >= 2.1.0-alpha.1, < 2.1.0-alpha.46, >= 2.1.0-beta.1, < 2.1.0-beta.45; @nocobase/plugin-collection-sql (npm) SEMVER:introduced=0,fixed=2.0.62.

**Is there a fix for CVE-2026-52888?** Yes. @nocobase/plugin-collection-sql (npm): upgrade to 2.0.62 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-52888 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-52888?** Check whether you run Nocobase, NocoBase Plugin-Collection-Sql or @nocobase/plugin-collection-sql (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @nocobase/plugin-collection-sql (npm): upgrade to 2.0.62 or later

  ```sh
  npm install @nocobase/plugin-collection-sql@2.0.62
  ```


## Technical details

The `checkSQL()` function in `plugin-collection-sql` utilizes a blacklist-based approach to filter dangerous SQL commands. This blacklist is insufficient as it fails to restrict access to PostgreSQL system catalog tables (e.g., `pg_shadow`, `pg_roles`, `pg_stat_activity`) and application-level sensitive tables like `users`. An authenticated attacker with the `admin` role can execute arbitrary `SELECT` queries via the `/api/sqlCollection:execute` endpoint to dump database password hashes and enumerate the full schema. This represents a security boundary violation (Scope Change) from application-level administration to database-level access. Patches are available in versions 2.0.62, 2.1.0-alpha.46, and 2.1.0-beta.45.

## Affected products

- NocoBase @nocobase/plugin-collection-sql < 2.0.62, >= 2.1.0-alpha.1, < 2.1.0-alpha.46, >= 2.1.0-beta.1, < 2.1.0-beta.45

## Identifiers

- CVE-2026-52888
- GHSA-v8vm-cqh8-q87q

## Timeline

- 2026-05-29: disclosed: Vulnerability discovered and reported to maintainers.
- 2026-06-08: advisory: GitHub Advisory published.
- 2026-07-28: patched: Advisory updated with patched version information.

## References

- [https://api.github.com/users/lucquach](https://api.github.com/users/lucquach)
- [https://github.com/lucquach](https://github.com/lucquach)
- [https://api.github.com/users/lucquach/gists%7B/gist_id%7D](https://api.github.com/users/lucquach/gists%7B/gist_id%7D)
- [https://api.github.com/users/lucquach/repos](https://api.github.com/users/lucquach/repos)
- [https://avatars.githubusercontent.com/u/89955380?v=4](https://avatars.githubusercontent.com/u/89955380?v=4)
- [https://api.github.com/users/lucquach/events%7B/privacy%7D](https://api.github.com/users/lucquach/events%7B/privacy%7D)

## Related threats

- [NocoBase server-side request forgery in customRequests:send](https://junglewise.ai/threats/cve-2026-79914-nocobase-is-an-ai-powered-no-code-low-code-platform-for-building)
- [NocoBase SQL injection in checkSQL function](https://junglewise.ai/threats/cve-2026-88402-a-sql-injection-vulnerability-in-the-checksql-function-of)
- [NocoBase cross-site scripting in rich text field renderer](https://junglewise.ai/threats/cve-2026-84701-nocobase-cross-site-scripting-in-rich-text-field-renderer)
- [NocoBase arbitrary file write and local file inclusion leading to remote code execution](https://junglewise.ai/threats/nocobase-arbitrary-file-write-and-local-file-inclusion-leading-to-b8ec6b22)
- [NocoBase SQL injection in in-app notification channel filter](https://junglewise.ai/threats/cve-2026-52887-nocobase-sql-injection-in-in-app-notification-channel-filter)
