Skip to content
Heist/ feed
High

Tianji: SQL Injection via unsanitized timezone parameter in analytics queries

Type: advisorySource: Official CVE List1 source record

Tianji is an open source analytics, uptime monitoring, and server status platform. Prior to 1.31.29, the getDateQuery() function in src/server/utils/prisma.ts constructs raw SQL through Prisma.sql() by interpolating the timezone request value without parameter binding. The timezone value can reach affected analytics queries through request data or the timezone HTTP header, and workspaceProcedure permits any authenticated workspace member, including a read-only viewer, to reach those queries. An attacker can execute arbitrary SQL against the shared PostgreSQL database, which can disclose or modify credentials, API keys, and tenant data or make the service unavailable. This issue is fixed in version 1.31.29.

Announced Source revision 1
Original source ↗

CVE-2026-55239

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-55239

tianji

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "msgbyte",
    "product": "tianji",
    "versions": [
      {
        "status": "affected",
        "version": "< 1.31.29"
      }
    ]
  }
]
Related CVEs
CVE-2026-55239

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#44998 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement