Skip to main content

CVE-2026-55240: CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine in msgbyte tianji

0
Critical
VulnerabilityCVE-2026-55240cvecve-2026-55240cwe-1336
Published: 10/15/2026 (10/15/2026, 18:15:12 UTC)
Source: CVE Database V5
Vendor/Project: msgbyte
Product: tianji

Description

CVE-2026-55240 is a critical vulnerability in the open source Tianji platform prior to version 1.31.29. It involves improper neutralization of special elements in a template engine, allowing server-side JavaScript execution via the lodash template function. An authenticated workspace administrator can inject code blocks that get executed when an unauthenticated user submits a survey response, leading to potential command execution, secret disclosure, data modification, or service disruption. The issue is fixed in version 1.31.29.

CVSS v3.1

Score 9.1critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected software

msgbyte

tianji

Affected versions
<1.31.29
msgbyte/tianji
pkg:npm/msgbyte/tianji
Affected versions
<1.31.29

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/15/2026, 18:48:14 UTC

Technical Analysis

Tianji versions before 1.31.29 use lodash's template() function with the default evaluate pattern enabled in formatString() within src/server/utils/template.ts. This allows a workspace administrator to embed <% code %> evaluate blocks in survey feedTemplate and monitor notification templates. When an unauthenticated user submits a survey response via the public survey.submit endpoint, the server compiles and executes these templates, resulting in server-side JavaScript execution within the Node.js process. This vulnerability enables attackers to execute arbitrary commands, disclose secrets, modify data, or disrupt service. The vulnerability is addressed by updating to Tianji version 1.31.29.

Potential Impact

Exploitation of this vulnerability allows an attacker to execute arbitrary server-side JavaScript code in the Tianji Node.js process. This can lead to full system compromise including command execution, disclosure of sensitive information, unauthorized data modification, and denial of service. The vulnerability affects the integrity, confidentiality, and availability of the affected system.

Mitigation Recommendations

Upgrade Tianji to version 1.31.29 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in 1.31.29.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-16T16:44:00.624Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad11cac2cdf04f6565042e5

Added to database: 10/15/2026, 18:34:20 UTC

Last enriched: 10/15/2026, 18:48:14 UTC

Last updated: 10/15/2026, 19:00:26 UTC

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses