Skip to content
Heist/ feed
Critical

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

Type: advisorySource: Official CVE List1 source 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.

Announced Group revision 1
Original source ↗

CVE-2026-55240

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-55240

tianji

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "msgbyte",
    "product": "tianji",
    "versions": [
      {
        "status": "affected",
        "version": "< 1.31.29"
      }
    ]
  }
]
Related CVEs
CVE-2026-55240

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#29992 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement