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.
Severity (CVSS)
| Base score | 9.1 |
|---|---|
| Severity | Critical |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-1336 — CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
Affected products
| Vendor | Product | Versions |
|---|---|---|
| msgbyte | tianji | < 1.31.29 [affected] |
References
- https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm (x_refsource_CONFIRM)
- https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48 (x_refsource_MISC)
- https://github.com/msgbyte/tianji/releases/tag/v1.31.29 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 16 Oct 2026 07:00 UTC.