# CVE-2026-55240: Tianji: Remote Code Execution via lodash template evaluate pattern in survey feed templates

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T18:15:12.957Z
- Modified: 2026-10-28T20:18:08.730Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- msgbyte tianji: < 1.31.29

## References

- <https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm> (exploit)
- <https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48>
- <https://github.com/msgbyte/tianji/releases/tag/v1.31.29>

## Sources

- CVE List: [CVE-2026-55240](https://www.cve.org/CVERecord?id=CVE-2026-55240), CVE Terms of Use, modified 2026-10-28
- NVD: [CVE-2026-55240](https://nvd.nist.gov/vuln/detail/CVE-2026-55240), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-55240 · Whole record: https://cve.day/CVE-2026-55240.json · Rebuilt by cve.day 2026-11-25T22:59:44.952Z
