CVE-2026-55240 msgbyte · tianji
AI summary
In Tianji before 1.31.29, a workspace administrator can store a malicious template that executes as server-side JavaScript in the Node.js process when an unauthenticated user submits a survey response. This enables command execution, secret disclosure, data modification or service disruption. Critical (9.1, requires high privileges); upgrade to 1.31.29.
Official 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.
- Published
- 2026-10-15 19:17 UTC
- Modified
- 2026-10-28 20:18 UTC
- CVSS
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - EPSS
- 1.12% (percentile 66)
- ENISA EUVD
- EUVD-2026-102246
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
- CWE
- CWE-1336
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- high
- User interaction
- none
- Scope
- changed
- Confidentiality
- high
- Integrity
- high
- Availability
- high
References
- NVD · CVE.org
- github.com
https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48 - github.com
https://github.com/msgbyte/tianji/releases/tag/v1.31.29 - github.com
https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm