CVE-2026-52887
Deferred Deferred - Pending Action

SQL Injection via PostgreSQL Literal in NocoBase In-App Messages

Vulnerability report for CVE-2026-52887, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-15

Last updated on: 2026-07-20

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-15
Last Modified
2026-07-20
Generated
2026-08-05
AI Q&A
2026-07-16
EPSS Evaluated
2026-08-03
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
nocobase nocobase to 2.0.61 (exc)
nocobase plugin-notification-in-app-message to 2.0.61 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

NocoBase before version 2.0.61 has a vulnerability in the @nocobase/plugin-notification-in-app-message plugin. The GET /api/myInAppChannels:list endpoint allows an authenticated user to inject PostgreSQL statements via the filter[latestMsgReceiveTimestamp][$lt] parameter. The injected value is used in a Sequelize.literal() template without proper escaping, enabling stacked PostgreSQL statements and potential command execution using COPY ... TO PROGRAM.

Detection Guidance

This vulnerability involves a SQL injection flaw in NocoBase versions prior to 2.0.61. To detect it, check the version of NocoBase installed on your system. If it is below 2.0.61, the system is vulnerable. Use commands like 'npm list @nocobase/plugin-notification-in-app-message' or inspect the application's package.json file to verify the version.

Impact Analysis

This vulnerability allows an authenticated attacker to execute arbitrary PostgreSQL commands on the server. This could lead to unauthorized data access, modification, or deletion, and potentially full system compromise depending on database permissions. Attackers could extract sensitive data, install malware, or disrupt services.

Compliance Impact

This vulnerability could severely impact compliance with GDPR and HIPAA by enabling unauthorized access to personal or health data. GDPR requires protection of personal data and breach notification, while HIPAA mandates safeguards for protected health information. Exploitation could result in data breaches, leading to legal penalties and reputational damage.

Mitigation Strategies

Immediately upgrade NocoBase to version 2.0.61 or later to patch the vulnerability. Review database logs for suspicious PostgreSQL command execution attempts. Restrict database user permissions to prevent COPY ... TO PROGRAM operations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52887. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart