Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102771 Overview
CVE-2026-102771 is a server-side template injection (SSTI) vulnerability in Naichen ThinkCMF versions up to 8.0.7. The flaw resides in the MailController::templatePut function within cmf-api/src/admin/controller/MailController.php, which handles email template updates. An authenticated attacker with high privileges can manipulate template input that is passed to the underlying template engine without proper neutralization of special elements [CWE-791]. The issue has been publicly disclosed, and the vendor did not respond to disclosure attempts. Because the vulnerability affects the email template component of a content management framework, exploitation grants attackers a foothold to influence server-side rendering behavior.
Critical Impact
Authenticated remote attackers can inject template directives into the Email Template component, leading to limited confidentiality, integrity, and availability impact on ThinkCMF installations up to version 8.0.7.
Affected Products
- Naichen ThinkCMF versions up to and including 8.0.7
- Component: Email Template (cmf-api/src/admin/controller/MailController.php)
- Function: MailController::templatePut
Discovery Timeline
- 2026-09-29 - CVE-2026-102771 published to the National Vulnerability Database
- 2026-09-29 - Last updated in NVD database
- Vendor status - Naichen was contacted prior to public disclosure but did not respond
Technical Details for CVE-2026-102771
Vulnerability Analysis
The vulnerability is a server-side template injection classified under [CWE-791: Incomplete Filtering of Special Elements]. The MailController::templatePut handler accepts user-supplied content intended to define an email template. Instead of treating the input as literal data, the controller forwards the string to the template engine, which parses embedded expressions and directives. An attacker who supplies template syntax rather than plain text causes those directives to execute during rendering.
Exploitation requires network access to the admin API and valid high-privilege credentials. Successful injection can alter template output, leak values available to the template context, and depending on the engine configuration, invoke unintended methods exposed to the templating layer. Public technical details have been disclosed in the ThinkCMF SSTI Vulnerability Report and tracked as VulDB Vulnerability #411468.
Root Cause
The root cause is improper neutralization of special elements used in a template engine. The templatePut function does not sanitize or escape template metacharacters before passing input to the engine, so directives inside the submitted payload are parsed and evaluated.
Attack Vector
The attack is network-based and requires an authenticated administrative session. An attacker submits a crafted email template body containing template engine syntax. When the template is later rendered, the engine executes the injected expressions in the server context.
// Vulnerability described in prose only.
// No verified proof-of-concept code is reproduced here.
// See the linked ThinkCMF SSTI Vulnerability Report for technical details.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-102771
Indicators of Compromise
- Requests to admin API endpoints handled by MailController::templatePut containing template metacharacters such as {{, }}, {%, or engine-specific tokens.
- Unexpected modifications to email templates stored by ThinkCMF, particularly by administrative accounts outside normal maintenance windows.
- Outbound emails whose bodies contain rendered output that does not match the intended template design.
Detection Strategies
- Inspect web server and application logs for POST or PUT requests to the ThinkCMF mail template API containing template-engine syntax in request bodies.
- Correlate template modification events with the authenticated administrator identity and source IP to identify anomalous editors.
- Alert on ThinkCMF PHP worker processes spawning child processes or making unexpected outbound network connections during template rendering.
Monitoring Recommendations
- Enable verbose audit logging on all ThinkCMF admin controllers, including mail template create, update, and delete operations.
- Forward web server, PHP-FPM, and ThinkCMF audit logs to a centralized analytics platform for retention and correlation.
- Baseline normal administrator activity on /admin routes and flag deviations in request frequency, payload size, or content signatures.
How to Mitigate CVE-2026-102771
Immediate Actions Required
- Restrict access to the ThinkCMF admin interface using network controls, VPN, or IP allow-listing until a patched release is available.
- Rotate credentials for all administrative accounts and enforce multi-factor authentication where supported.
- Review the current email templates for injected directives and revert any unauthorized modifications.
Patch Information
At the time of publication, Naichen has not released a fix and did not respond to the disclosure. Monitor the Naichen ThinkCMF project references and the VulDB entry for CVE-2026-102771 for updates on an official patch.
Workarounds
- Limit the set of accounts that hold administrative privileges over the mail template component to the minimum required.
- Apply a reverse-proxy or web application firewall rule to block request bodies to the mail template endpoint that contain template-engine delimiters such as {{, }}, {%, and %}.
- If email templates are not required, disable or remove the mail template routes exposed by cmf-api/src/admin/controller/MailController.php.
# Example nginx location block restricting the vulnerable endpoint by source IP
location ~* /admin/.*mail.*template {
allow 10.0.0.0/24; # trusted admin subnet
deny all;
proxy_pass http://thinkcmf_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

