Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: Official CVE List

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.

Products
tianji
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-55240
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 13:21 UTC · Revision 2

Source evidence

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

core-cve · Original source

Published 15 Oct 2026, 18:15 UTC

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.

cve:CVE-2026-55240

tianji

Fixed versions: Not specified

Complete source record
{
  "id": "25d709173f6cb3f518ca1c95a0f721fee457d3cc71d7432a806273b0308b3e2b",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-55240",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Tianji: Remote Code Execution via lodash template evaluate pattern in survey feed templates",
    "summary": "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.",
    "evidence": "cve:CVE-2026-55240",
    "products": [
      {
        "name": {
          "value": "tianji",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-55240",
      "aliases": [
        "CVE-2026-55240"
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "scope": "CHANGED",
            "version": "3.1",
            "baseScore": 9.1,
            "attackVector": "NETWORK",
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
            "integrityImpact": "HIGH",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "availabilityImpact": "HIGH",
            "privilegesRequired": "HIGH",
            "confidentialityImpact": "HIGH"
          }
        }
      ],
      "affected": [
        {
          "vendor": "msgbyte",
          "product": "tianji",
          "versions": [
            {
              "status": "affected",
              "version": "< 1.31.29"
            }
          ]
        }
      ],
      "modified": "2026-10-28T20:04:59.360Z",
      "provider": "cve",
      "references": [
        "https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm",
        "https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48",
        "https://github.com/msgbyte/tianji/releases/tag/v1.31.29"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-55240",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "poc"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-28T20:04:51.050574Z"
                  }
                }
              }
            ],
            "references": [
              {
                "url": "https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm",
                "tags": [
                  "exploit"
                ]
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-28T20:04:59.360Z"
            }
          }
        ],
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-15T18:15:12.957Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-55240",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 484700,
  "published_at": "2026-10-15T18:15:12.957+00:00"
}