Skip to main content

CVE-2026-55239: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in msgbyte tianji

0
High
VulnerabilityCVE-2026-55239cvecve-2026-55239cwe-89
Published: 10/15/2026 (10/15/2026, 18:14:21 UTC)
Source: CVE Database V5
Vendor/Project: msgbyte
Product: tianji

Description

CVE-2026-55239 is a SQL Injection vulnerability in the open source platform Tianji prior to version 1.31.29. The vulnerability arises from improper neutralization of special elements in SQL commands within the getDateQuery() function, which interpolates the timezone value without parameter binding. Authenticated workspace members, including read-only viewers, can exploit this to execute arbitrary SQL on the shared PostgreSQL database. This can lead to disclosure or modification of sensitive data such as credentials and API keys, or cause service disruption. The issue is fixed in Tianji version 1.31.29.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

msgbyte

tianji

Affected versions
<1.31.29
GitHub Actionsmore threats →ai
msgbyte/tianji
pkg:github/msgbyte/tianji
Affected versions
<1.31.29

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/15/2026, 18:48:18 UTC

Technical Analysis

Tianji versions before 1.31.29 contain a SQL Injection vulnerability (CWE-89) in the getDateQuery() function located in src/server/utils/prisma.ts. The function constructs raw SQL queries using Prisma.sql() by directly interpolating the timezone value from request data or the timezone HTTP header without using parameter binding. Since any authenticated workspace member, including those with read-only access, can trigger these queries via workspaceProcedure, an attacker can execute arbitrary SQL commands against the shared PostgreSQL database. This can result in unauthorized disclosure or modification of credentials, API keys, tenant data, or denial of service. The vulnerability is resolved in version 1.31.29.

Potential Impact

An attacker with authenticated access to a workspace, even with read-only permissions, can exploit this vulnerability to execute arbitrary SQL commands on the shared PostgreSQL database. This can lead to high impact outcomes including disclosure and modification of sensitive data such as credentials and API keys, as well as potential service unavailability. The CVSS v3.1 score is 8.8, indicating a high severity vulnerability with network attack vector, low attack complexity, and no user interaction required.

Mitigation Recommendations

Upgrade Tianji to version 1.31.29 or later, where this SQL Injection vulnerability has been fixed by properly handling the timezone value with parameter binding. No other mitigation is required as the fix addresses the root cause.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-16T16:44:00.624Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad11cac2cdf04f6565042e4

Added to database: 10/15/2026, 18:34:20 UTC

Last enriched: 10/15/2026, 18:48:18 UTC

Last updated: 10/15/2026, 19:00:26 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses