---
title: "Tianji - Server-Side Template Injection"
description: "Tianji < 1.31.29 contains a server-side template injection caused by unsafe use of lodash template() with default evaluate pattern in survey and monitor templates, letting workspace administrators execute arbitrary server-side JavaScript via public survey.submit endpoint, exploit requires workspace administrator to store malicious template."
url: https://panop.io/threat-heartbeat/CVE-2026-55240/
---

# CVE-2026-55240 Tianji - Server-Side Template Injection

Tianji < 1.31.29 contains a server-side template injection caused by unsafe use of lodash template() with default evaluate pattern in survey and monitor templates, letting workspace administrators execute arbitrary server-side JavaScript via public survey.submit endpoint, exploit requires workspace administrator to store malicious template.

CVSS base score 9.1 /10

Critical

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-55240)

## Details

Type

Template Injection

Impact

Remote Code Execution, Information Disclosure, Data Tampering, Denial Of Service

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Published

15 October 2026

Updated

16 October 2026

Weakness

[CWE-1336](https://cwe.mitre.org/data/definitions/1336.html)

## Vendor fix

Update to version 1.31.29 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-55240](https://nvd.nist.gov/vuln/detail/CVE-2026-55240)
- [https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48](https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48)
- [https://github.com/msgbyte/tianji/releases/tag/v1.31.29](https://github.com/msgbyte/tianji/releases/tag/v1.31.29)
- [https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm](https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
