What’s Vulnerable › Vulnerabilities
CVE-2026-55239: Tianji: SQL Injection via unsanitized timezone parameter in analytics queries
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-15 · updated 2026-10-21
- Weakness: CWE-89
Description
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.
Affected products
- msgbyte tianji: before 1.31.29
References
- https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48
- https://github.com/msgbyte/tianji/releases/tag/v1.31.29
- https://github.com/msgbyte/tianji/security/advisories/GHSA-v9jm-vvrj-53c4
Get alerted when CVE-2026-55239 or the next vulnerability affects your stack