CVE-2026-52887 NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE
Authenticated users can exploit SQL injection in the notification plugin to execute arbitrary PostgreSQL commands and achieve remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-52887?
CVE-2026-52887 is a critical SQL injection vulnerability in nocobase, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2026-52887?
2 open source packages ship an affected version, including @nocobase/plugin-notification-in-app-message.
| Package | Affected | Fixed in |
|---|---|---|
@nocobase/plugin-notification-in-app-message npm | All versions | 2.0.61 |
@nocobase/plugin-notification-in-app-message npm | All versions | 2.0.61 |
How do I fix CVE-2026-52887?
Upgrade @nocobase/plugin-notification-in-app-message to 2.0.61 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-52887 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52887 exists.
Public exploit code: 2 proofs of concept on GitHub.
Sources
Also known as GHSA-p849-8hwh-84j9.