CVE-2026-55240: Tianji - Server-Side Template Injection
- Cve: CVE-2026-55240
- Name: Tianji - Server-Side Template Injection
- Description: Tianji is an open source analytics, uptime monitoring, and server status platform. Prior to 1.31.29, formatString() in src/server/utils/template.ts passes survey feedTemplate and monitor notification templates to lodash template(), while the default evaluate pattern remains enabled. A workspace administrator can store an evaluate block using the <% code %> form, and the public survey.submit endpoint renders a survey template when an unauthenticated user submits a response. The compiled template executes server-side JavaScript in the Tianji Node.js process, allowing command execution, secret disclosure, data modification, or service disruption. This issue is fixed in version 1.31.29.
- Impact: Attackers can execute arbitrary code, disclose secrets, modify data, or disrupt service on the server.
- Remediation: Update to version 1.31.29 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution, information_disclosure, data_tampering, denial_of_service
- Requirement type: logged_in
- Requirements: Attacker must be a workspace administrator to store malicious template.
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.00748
- Epss percentile: 0.55819
- Assignee: [email protected]
- Published at: 2026-10-15T19:17:40Z
- Age in days: 40
- Modified at: 2026-10-28T20:18:08Z
- References total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-55240
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine |
References
Same in every row:
- Source: nvd
- Tags:
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| msgbyte/tianji | commit, releases, security_advisory | yes | /v1/repositories/msgbyte/tianji |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts