Paper/Archive/CVE-2026-55240

CVE-2026-55240

msgbyte tianji — Tianji: Remote Code Execution via lodash template evaluate pattern in survey feed templates

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
tianji< 1.31.29–CNA

Scores by source

GitHub_M (CNA)9.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CISA ADPSSVCExploitation: poc · Automatable: no · Technical impact: total

References

exploitgithub.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpmrefgithub.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48refgithub.com/msgbyte/tianji/releases/tag/v1.31.29