Live threats

All CVEs / msgbyte

CVE-2026-55240msgbyte tianji

Remote Code Execution in Tianji via Template Injection

Critical 9.1

Priority
55
CVSS 3.1
9.1
EPSS
—
Auth required
Yes
Published
Oct 15, 2026
Updated
Oct 28, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1336
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

What happens

Tianji prior to 1.31.29 allows a workspace administrator to inject JavaScript code into survey and monitoring notification templates. When an unauthenticated user submits a response via the public survey.submit endpoint, the compiled template executes code in the Tianji Node.js process, enabling command execution, secret disclosure, and data modification.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.31.29

Update Tianji to version 1.31.29 or later to disable the evaluate pattern in lodash templates.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for tianji.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.