---
id: CVE-2026-55239
title: >-
  Tianji is an open source analytics, uptime monitoring, and server status
  platform
summary: >-
  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 …
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
vendor: msgbyte
product: tianji
affected:
  - tianji < 1.31.29
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:40.143'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-55239'
references:
  - url: >-
      https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48
    label: security-advisories@github.com
  - url: 'https://github.com/msgbyte/tianji/releases/tag/v1.31.29'
    label: security-advisories@github.com
  - url: 'https://github.com/msgbyte/tianji/security/advisories/GHSA-v9jm-vvrj-53c4'
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-15T19:25:46.434Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
