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

Published Oct 15, 2026
·
Updated

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 Software

1 affected component
Tianji Tianji<1.31.29

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Tianji to a version that resolves this vulnerability.

    Fixed in 1.31.29

Event History

Oct 15, 2026
CVE Published
via MITRE·06:14 PM
Data Sourced
via MITRE·06:14 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

Any authenticated member of a Tianji workspace can reach the affected analytics queries, including users assigned a read-only viewer role. Exploitation does not require user interaction.

2

What input paths can carry the malicious value?

The vulnerable timezone value can be supplied through request data or the timezone HTTP header when affected analytics queries are reached.

3

Are default deployments affected?

The provided information does not identify any non-default configuration requirement. Affected versions prior to 1.31.29 expose the vulnerable query path to authenticated workspace members.

4

What is the impact if exploitation succeeds?

An attacker can execute arbitrary SQL against the shared PostgreSQL database. This can expose or alter credentials, API keys, and tenant data, or cause service unavailability.

5

How can this be remediated?

Upgrade Tianji to version 1.31.29, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203