{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.31.29"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b22f41c6896e2845a467c088d414dfcd277951d4"
            }
          ],
          "repo": "https://github.com/msgbyte/tianji",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5grg-j3cr-3hpm"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-1336"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55240.json"
  },
  "details": "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 \u003c% code %\u003e 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.",
  "id": "CVE-2026-55240",
  "modified": "2026-10-16T02:30:42.116329353Z",
  "published": "2026-10-15T18:15:12.957Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55240.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48"
    },
    {
      "type": "WEB",
      "url": "https://github.com/msgbyte/tianji/releases/tag/v1.31.29"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-55240"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Tianji: Remote Code Execution via lodash template evaluate pattern in survey feed templates"
}