{
  "id": "CVE-2026-55240",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-55240",
  "published_at": "2026-10-15T18:15:12.957Z",
  "title": "Tianji: Remote Code Execution via lodash template evaluate pattern in survey feed templates",
  "vendor": "msgbyte",
  "product": "tianji",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 \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.",
  "cwe": "CWE-1336",
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "msgbyte",
        "product": "tianji",
        "ranges": [
          "\u003c 1.31.29"
        ],
        "fixed_in": [
          "1.31.29"
        ]
      }
    ],
    "upgrade": [
      "Upgrade tianji to 1.31.29 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/msgbyte/tianji/security/advisories/GHSA-5grg-j3cr-3hpm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/msgbyte/tianji/commit/132ff67907df897d222829ea8ad1a018ff74df48"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/msgbyte/tianji/releases/tag/v1.31.29"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
