# CVE-2026-55239: Tianji: SQL Injection via unsanitized timezone parameter in analytics queries

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-02)
- Published: 2026-10-15T18:14:21.918Z
- Modified: 2026-10-21T01:17:39.013Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- msgbyte tianji: < 1.31.29

## References

- <https://github.com/msgbyte/tianji/security/advisories/GHSA-v9jm-vvrj-53c4>
- <https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48>
- <https://github.com/msgbyte/tianji/releases/tag/v1.31.29>

## Sources

- CVE List: [CVE-2026-55239](https://www.cve.org/CVERecord?id=CVE-2026-55239), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-55239](https://nvd.nist.gov/vuln/detail/CVE-2026-55239), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-55239 · Whole record: https://cve.day/CVE-2026-55239.json · Rebuilt by cve.day 2026-11-25T22:59:44.951Z
