Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-1336 — Vulnerability Class 203

203 vulnerabilities classified as CWE-1336. AI Chinese analysis included.

CWE-1336 represents a critical injection vulnerability where applications fail to properly sanitize user-supplied data before passing it to a template engine. This weakness allows attackers to inject malicious template expressions or code directives that the engine interprets as executable logic rather than static text. Exploitation typically occurs when developers directly embed unvalidated user input into templates, enabling remote code execution, server-side request forgery, or sensitive data leakage. To mitigate this risk, developers must strictly enforce input validation and utilize built-in auto-escaping features provided by modern template frameworks. Additionally, implementing the principle of least privilege ensures that even if an injection succeeds, the potential impact is contained. Regular security audits and static code analysis tools can further help identify unsafe template usage patterns before deployment.

MITRE CWE Description
The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. Many web applications use template engines that allow developers to insert externally-influenced values into free text or messages in order to generate a full web page, document, message, etc. Such engines include Twig, Jinja2, Pug, Java Server Pages, FreeMarker, Velocity, ColdFusion, Smarty, and many others - including PHP itself. Some CMS (Content Management Systems) also use templates. Template engines often have their own custom command or expression language. If an attacker can influence input into a template before it is processed, then the attacker can invoke arbitrary expressions, i.e. perform injection attacks. For example, in some template languages, an attacker could inject the expression "{{7*7}}" and determine if the output returns "49" instead. The syntax varies depending on the language. In some cases, XSS-style attacks can work, which can obscure the root cause if the developer does not closely investigate the root cause of the error. Template engines can be used on the server or client, so both "sides" could be affected by injection. The mechanisms of attack or the affected technologies might be different, but the mistake is fundamentally the same.
Common Consequences (1)
Integrity Execute Unauthorized Code or Commands
Mitigations (2)
Architecture and Design Choose a template engine that offers a sandbox or restricted mode, or at least limits the power of any available expressions, function calls, or commands.
Implementation Use the template engine's sandbox or restricted mode, if available.
CVE ID Title CVSS Severity Published
CVE-2026-71291 Bolt CMS Server-Side Template Injection via Unsandboxed allow_twig Field Rendering — core 8.8 High 2026-08-05
CVE-2026-71286 ember-dynamic-render-template Client-Side Template Injection via Unsanitized templateString — ember-dynamic-render-template 6.1 Medium 2026-08-05
CVE-2026-71239 DjangoCRM - Server-Side Template Injection in Mass Mail Message Rendering — django-crm 8.1 High 2026-08-05
CVE-2026-48323 Adobe Campaign Classic (ACC) | Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336) — Adobe Campaign Classic 10.0 Critical 2026-08-03
CVE-2026-18632 langgenius dify Jinja2 jinja2_transformer.py jinja2.Template special elements used in a template engine — dify 6.3 Medium 2026-08-03
CVE-2026-9177 Server-Side Template Injection in SecureTransport's Apache Velocity mail templates — SecureTransport 9.4 Critical 2026-07-29
CVE-2026-47752 Tugtainer has Server-Side Template Injection in notification templates that leads to Remote Code Execution — tugtainer 9.9 Critical 2026-07-23
CVE-2026-63728 Gitleaks Secret Exfiltration via Non-Hermetic Sprig Template Functions in Report Template Feature — gitleaks 6.3 Medium 2026-07-20
CVE-2026-44181 Jupyter Enterprise Gateway: Jinja2 Template Server Side Template Injection results in Remote Code Execution — enterprise_gateway - - 2026-07-16
CVE-2026-55794 Craft CMS: Potential authenticated Remote Code Execution via referrer redirect — cms - - 2026-07-01
CVE-2026-52796 Gogs: DoS in rendering issue index pattern — gogs 3.5 Low 2026-06-24
CVE-2026-28496 FOSSBilling: Server-side template injection in Twig template rendering enables information disclosure and RCE — FOSSBilling - - 2026-06-23
CVE-2026-54390 JTL Shop < 5.7.2 Server-Side Template Injection via Smarty Renderer — JTL Shop 9.8 Critical 2026-06-18
CVE-2026-11407 Pimcore CMS 12.3.8 Twig Sandbox Bypass via SecurityPolicy checkMethodAllowed — Pimcore CMS/DXP 7.2 High 2026-06-17
CVE-2026-41065 Tautulli Vulnerable to Unauthenticated/Authenticated Remote Code Execution via Newsletter Custom Template Directory — Tautulli - - 2026-06-04
CVE-2026-34906 Server-Side Template Injection (SSTI) in Wirtualna Uczelnia — Wirtualna Uczelnia - - 2026-06-02
CVE-2026-42252 Apache Airflow: BashOperator Jinja2 injection via dag_run.conf — low-privilege user pattern — Apache Airflow - - 2026-06-01
CVE-2026-49382 JetBrains IntelliJ IDEA 安全漏洞 — IntelliJ IDEA 4.5 Medium 2026-05-29
CVE-2026-45312 RAGFlow: Server-Side Template Injection in Prompt Generator leads to Remote Code Execution — ragflow 9.9 Critical 2026-05-29
CVE-2026-9558 Mautic 安全漏洞 9.9 Critical 2026-05-29
CVE-2026-44209 Banks: Critical Remote Code Execution (RCE) via Jinja2 SSTI — banks 7.5 High 2026-05-26
CVE-2026-9498 Dromara lamp-cloud Message Template GroovyClassLoader.parseClass special elements used in a template engine — lamp-cloud 6.3 Medium 2026-05-25
CVE-2025-40900 Angular template injection in Reports in Guardian/CMC before 26.1.0 — Guardian 4.6 Medium 2026-05-19
CVE-2026-29207 Apache OFBiz: Low-Privilege SSTI Leading to RCE in the Content Component — Apache OFBiz - - 2026-05-19
CVE-2026-8740 Sanluan PublicCMS templateResult API TemplateResultDirective.java execute special elements used in a template engine — PublicCMS 6.3 Medium 2026-05-17
CVE-2026-41713 Prompt Injection via Memory Poisoning in PromptChatMemoryAdvisor — Spring AI 8.2 High 2026-05-12
CVE-2026-44129 Server-side template injection — Secure Email Gateway 9.8AI Critical AI 2026-05-08
CVE-2026-44916 OpenStack Ironic 安全漏洞 — Ironic 3.0 Low 2026-05-08
CVE-2026-42203 LiteLLM: Server-Side Template Injection in /prompts/test endpoint — litellm 9.6AI Critical AI 2026-05-08
CVE-2026-6984 AstrBotDevs AstrBot Dashboard API t2i.py create_template special elements used in a template engine — AstrBot 4.7 Medium 2026-04-25

Vulnerabilities classified as CWE-1336 represent 203 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.