{"id":"CVE-2026-55240","published":"2026-10-15T19:17:40.290","lastModified":"2026-10-16T20:04:29.760","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.","cvssScore":9.1,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","cwes":["CWE-1336"],"vendors":[],"products":[],"references":[{"url":"https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48","tags":[]},{"url":"https://github.com/msgbyte/tianji/releases/tag/v1.31.29","tags":[]},{"url":"https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm","tags":[]}],"exploitRefs":[{"url":"https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48","tags":[]},{"url":"https://github.com/msgbyte/tianji/releases/tag/v1.31.29","tags":[]},{"url":"https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm","tags":[]}],"hasPoc":true,"ai":{"summary":"A server-side template injection vulnerability in Tianji allows authenticated workspace administrators to inject and execute arbitrary JavaScript code via survey and monitor notification templates, leading to potential command execution and data compromise.","exploitability":"Moderately difficult to exploit as it requires an authenticated workspace administrator to create a malicious template, but the public survey.submit endpoint makes exploitation possible without authentication.","blast_radius":"High impact across all survey responses and monitor notifications, potentially affecting multiple users and systems with access to the platform.","remediation":"Upgrade to version 1.31.29 or later to fix the template injection vulnerability.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","template-injection","web"],"model":"garnet-coder","analyzedAt":"2026-10-16T08:48:57.719Z"}}