appsec.fyi › Server-Side Template Injection (SSTI)

Server-Side Template Injection (SSTI) Resources

Page 3 of 3: resources 101–145 of 145, added Apr 2026.

The newest Server-Side Template Injection (SSTI) resources are on the Server-Side Template Injection (SSTI) page. For a reading order instead of a date order, see the Server-Side Template Injection (SSTI) learning path.

Date AddedLinkExcerpt
2026-04-16 2026SSTI Explained with Real Code Examples - Xygeni beginner 3 min readServer-side template injection (SSTI) vulnerabilities allow attackers to inject malicious payloads into templating engines, leading to data disclosure or remote code execution. Examples like `{{7*7}}` in Jinja2 or `{{app.request.server.all}}` in Twig demonstrate how these injections can escalate. SSTI can occur in web applications, CI/CD pipelines, Helm charts, and email templates. Preventing SSTI involves avoiding direct rendering of user input, utilizing sandboxed templates, sanitizing variables, and integrating static analysis and pipeline checks to detect unsafe template usage.
2026-04-16 2026Deep Dive into SSTI: Finding and Exploiting Like a Pro advanced 3 min readTechnique for finding and exploiting Server-Side Template Injection (SSTI) vulnerabilities, focusing on Jinja2, Twig, Velocity, and Freemarker engines. It details detection methods using basic template expressions like `{{7*7}}`, fuzzing with Burp Intruder, and escalation to Remote Code Execution (RCE) by accessing built-in classes to spawn shells. Real-world examples from bug bounties and mitigation strategies are also discussed. → infosecwriteups.com
2026-04-11 2026CVE-2022-46166: Spring Boot Admin RCE newsCVE-2022-46166 in Spring Boot Admin allows for remote command execution by exploiting an authentication bypass vulnerability. This flaw, detailed in a Sangfor Farsight Labs threat intelligence report, enables unauthenticated attackers to gain control of vulnerable systems, posing a significant security risk to applications using Spring Boot Admin for management.
2026-04-11 2026CVE-2021-43466: Thymeleaf Spring5 RCE newsRemote Code Execution via CVE-2021-43466 in `thymeleaf-spring5` allows attackers to inject malicious input through the `render` function in `AjaxThymeleafView.java` when combined with specific template scenarios. Users should upgrade `org.thymeleaf:thymeleaf-spring5` to version 3.0.13.RELEASE or higher to mitigate this vulnerability. → security.snyk.io
2026-04-11 2026Handlebars.js: Safe Usage to Avoid Injection Flaws beginner 5 min readHandlebars.js injection flaws, including XSS and prototype pollution, arise from improper usage like triple braces or unsafe custom helpers, bypassing default output escaping. Real-world exploits, such as those seen in Asana and npm packages, underscore the risks of rendering untrusted input. Secure development involves always using double braces, validating input, restricting dangerous helpers, and employing Content Security Policy. Automating validation within CI/CD pipelines using tools like Xygeni can further prevent insecure Handlebars code from reaching production by flagging unsafe patterns and offering automatic fixes.
2026-04-11 2026HackerOne #164224: SSTI intermediate 1 min readServer-side template injection (SSTI) vulnerability in Unikrn, discovered via HackerOne report #164224, allows for remote code execution (RCE) by exploiting the Smarty templating engine. Attackers can inject malicious payloads into user profile fields, such as first name, last name, or nickname, which are then parsed and executed on the server. This enables the execution of arbitrary PHP functions, demonstrated by the extraction of sensitive data like `/etc/passwd`, and carries the potential for full server compromise. → hackerone.com
2026-04-11 2026AST Injection: Prototype Pollution to RCE in Handlebars advanced 4 min readAST Injection allows arbitrary code execution in Node.js template engines like Handlebars and Pug by exploiting prototype pollution vulnerabilities to insert malicious Abstract Syntax Tree nodes. This technique bypasses input validation during the parsing or compilation phases, enabling attackers to inject commands by manipulating AST structures like `NumberLiteral` in Handlebars or `node.line` in Pug, potentially compromising servers using vulnerable versions of popular packages like `flat`.
2026-04-11 2026Handlebars template injection and RCE in Shopify app intermediate 7 min readHandlebars template injection leading to RCE in a Shopify app allowed an attacker to execute arbitrary code by exploiting the `this.constructor.constructor` pattern and manipulating `Object.prototype.toString()`. This vulnerability arose within the Return Magic Shopify app's customizable email workflow feature, where user-provided template variables were processed by the Handlebars JavaScript library. By carefully crafting template expressions, an attacker could gain access to the Function constructor, ultimately enabling the execution of malicious code within the application's environment.
2026-04-11 2026A Pentester's Guide to SSTI - Cobalt intermediate 3 min read RCEGuide to Server-Side Template Injection (SSTI) detailing its nature as a vulnerability where injected input into template engines leads to command execution, often resulting in Remote Code Execution (RCE). It covers popular template engines like Smarty, Twigs, Velocity, Freemaker, JINJA, Mako, Tornado, Jade, Rage, and Liquid. The guide explains detection methods using polyglot payloads, analyzing error messages to identify engines, and exploiting vulnerabilities, mentioning the tool Tplmap for automated exploitation. Remediation strategies include sanitizing user input and employing sandboxing techniques. → cobalt.io
2026-04-11 2026SSTI: Advanced Exploitation Guide - Intigriti advanced 9 min read RCEServer-side template injection (SSTI) vulnerabilities allow attackers to inject malicious template syntax that gets evaluated on the server, potentially leading to remote code execution. This guide offers techniques for identifying and exploiting SSTI across popular template engines such as Jinja2, Twig, and ERB, detailing how to weaponize payloads and navigate advanced exploitation scenarios, even within sandboxed environments. → intigriti.com
2026-04-11 2026Exploiting Jinja SSTI with limited payload size intermediate 1 min readTechnique for exploiting Jinja Server-Side Template Injection (SSTI) with limited payload size by leveraging the globally accessible `config` object. This method involves storing payload fragments in `config` items via short URI parameters and then executing them using `popen` for remote code execution, demonstrated with a Python reverse shell.
2026-04-11 2026CVE-2024-29178: Apache StreamPark FreeMarker SSTI newsCVE-2024-29178 in Apache StreamPark allows authenticated users to exploit a FreeMarker Server-Side Template Injection (SSTI) vulnerability to achieve Remote Code Execution. This moderate-severity vulnerability affects versions prior to 2.1.4 and requires an attacker to first log into the system to launch the attack. Upgrading to StreamPark version 2.1.4 is the recommended mitigation.
2026-04-11 2026SpringBootAdmin Thymeleaf SSTI to RCE intermediate 3 min readLibrary for exploiting Thymeleaf Sandbox Bypass in Spring Boot Admin (versions <= 3.1.0) and Thymeleaf (versions <= 3.1.1.RELEASE). This vulnerability allows for Remote Code Execution (RCE) via MailNotifier configuration, enabling attackers to set a malicious remote HTML template or read local files. The library includes proof-of-concept exploit code and details the sandbox bypass technique for achieving RCE.
2026-04-11 2026Exploiting SSTI in Thymeleaf intermediate 5 min readExploiting Server-Side Template Injection (SSTI) in Thymeleaf, a Java-based template engine, can lead to Remote Code Execution (RCE). Thymeleaf expressions within attributes like `${...}` are particularly vulnerable. A "dangerous feature" called expression preprocessing, indicated by double underscores (`__...__`), allows for double evaluation and can be exploited if an attacker controls the preprocessed content. A real-world example demonstrated this in the PetClinic demo application, where an attacker could control the `path` variable, leading to SSTI and RCE on servers like Jetty that do not restrict `{` and `}` characters in URLs. → acunetix.com
2026-04-11 2026Exploiting SSTI in a Modern Spring Boot Application intermediate 5 min readServer-Side Template Injection (SSTI) in Spring Boot applications using Thymeleaf can lead to unauthenticated Remote Code Execution (RCE). This technique involves exploiting a reflection vulnerability within the templating engine to inject and execute arbitrary Java code. Bypassing modern Spring Boot defenses requires leveraging reflection libraries like Apache Commons Lang3's `MethodUtils` to call methods such as `Runtime.getRuntime().exec()` or achieving RCE through file writes when outbound connections are restricted.
2026-04-11 2026Method Confusion in Go SSTIs Lead to RCE advanced 3 min readGo Server-Side Template Injection (SSTI) vulnerabilities can lead to arbitrary code execution. Unlike other languages, Go's `html/template` module allows the direct invocation of methods with parameters when controlled by an attacker. This "method confusion" can be leveraged to execute arbitrary commands or read local files by exploiting exported functions within Go's standard library or third-party packages, such as the `File` method in the `echo` web framework. → onsecurity.io
2026-04-11 2026Golang SSTI: Safe by Default or Vulnerable by Design intermediate 4 min readGolang Server-Side Template Injection (SSTI) vulnerabilities, often overlooked and lacking CVEs, arise when untrusted user input directly feeds into Go's `text/template` or `html/template` engines, enabling attackers to achieve remote code execution, file system manipulation, and data disclosure. While Go's standard libraries are generally considered safe, misconfigurations like context-unaware execution or improperly registered helper functions can expose dangerous primitives. Traditional security tools like EDRs and WAFs struggle to detect these "shadow" vulnerabilities due to their application-layer nature. Oligo's Deep Application Inspection (DAI) offers a solution by observing template rendering at runtime, providing applicative context, a template-aware syscall map, and rich forensic data to detect and prevent SSTI exploitation, including zero-day threats.
2026-04-11 2026SSTI: Transforming Web Apps from Assets to Liabilities beginner 12 min readServer-Side Template Injection (SSTI) vulnerabilities allow attackers to inject malicious code into web application templates, enabling arbitrary command execution, data theft, and system compromise. Recent increases in critical CVEs affecting platforms like Atlassian Confluence and CrushFTP highlight the severity of SSTI, with organizations facing weekly attacks. Techniques for exploiting SSTI include fuzzing, blind SSTI, and using functions like `sleep` and `nslookup` to confirm vulnerabilities and gather information, impacting sectors like Retail/Wholesale and Finance/Banking, and posing greater risks in cloud environments. → research.checkpoint.com
2026-04-11 2026ServiceNow RCE Exploitation Campaign intermediate 6 min readServiceNow RCE exploitation is being actively pursued by threat actors using CVE-2024-4879 and CVE-2024-5217, which allow unauthenticated code execution, and CVE-2024-5178 for unauthorized file access. Adversaries are scanning globally for vulnerable instances, estimated to be around 300,000, using tools like Shodan and HUNTER.NOW to identify targets for data extraction, including credentials and user lists. Exploitation involves chaining title injection, template injection bypass, and filesystem filter bypass, with payloads designed to confirm vulnerability and extract sensitive database information. → resecurity.com
2026-04-11 2026Multiple ServiceNow SSTI Vulnerabilities intermediate 1 min readCVE-2024-4879, CVE-2024-5178, and CVE-2024-5217 represent multiple critical ServiceNow Server-Side Template Injection vulnerabilities affecting non-hosted instances of Vancouver, Washington DC, and Utah releases. Exploiting these flaws allows threat actors to execute arbitrary code on affected instances, leading to potential system compromise and data theft. ServiceNow has released patches, and hosted instances have been automatically updated.
2026-04-11 2026ServiceNow RCE (CVE-2024-4879) Analysis news 4 min readAnalysis of CVE-2024-4879 details a critical Jelly template injection vulnerability in ServiceNow, enabling unauthenticated remote code execution. This flaw allows attackers to inject and execute arbitrary code, posing risks of unauthorized data access, system compromise, and service disruption. Public exploit tools exist, and the vulnerability has been actively used in attacks with low complexity. Affected ServiceNow versions require immediate patching, and robust input validation is advised as mitigation.
2026-04-11 2026CVE-2025-23211: Jinja2 SSTI Turns Recipes Into RCE news 3 min readCVE-2025-23211 in Tandoor Recipes demonstrates how Server-Side Template Injection (SSTI) with Jinja2 can lead to Remote Code Execution (RCE). This vulnerability arises when user-supplied input is processed as code within templates, allowing attackers to inject commands that can compromise the server, steal data, or disrupt services. The example showcases an exploit targeting the "Instructions" field to execute system commands.
2026-04-11 2026CVE-2025-23211: Tandoor Recipes Jinja2 SSTI to RCE news 2 min readCVE-2025-23211 in Tandoor Recipes allows critical Server-Side Template Injection to Remote Code Execution. Versions prior to 1.5.24 are affected due to improper handling of user-supplied input within Jinja2 templates, enabling authenticated users to execute arbitrary system commands. In Docker Compose deployments, this leads to root-level system compromise.
2026-04-10 2026GoSecure: Template Injection in Action workshop beginner 11 min readWorkshop slides from GoSecure presenting a 2-hour deep dive into Template Injection, also known as Server-Side Template Injection (SSTI). This workshop, built on foundations established by James Kettle's 2015 Black Hat talk, features six labs exploring exploitation techniques against five distinct template engines, including Twig and Jinja. Participants will learn to identify vulnerabilities by understanding template syntax, leverage internal APIs like Twig's `_self.env.registerUndefinedFilterCallback` for command execution, and exploit Python's Jinja metaproperties to enumerate classes and potentially achieve code execution. The labs are containerized using Docker for easy deployment, and an HTTP interception proxy is the only prerequisite.
2026-04-10 2026Jinja2 SSTI filter bypasses intermediate 1 min readJinja2 Server-Side Template Injection (SSTI) filter bypasses are detailed, showcasing techniques to circumvent blacklists by exploiting the `attr` function and using hex escapes for underscores. This allows for Remote Code Execution (RCE) by chaining attribute access to locate and invoke `subprocess.Popen` through its subclasses and `__getitem__` method, ultimately enabling command execution like `ls`.
2026-04-10 2026OnSecurity: Server Side Template Injection with Jinja2 beginner 10 min readServer-side template injection (SSTI) vulnerabilities in Jinja2 can lead to remote code execution by exploiting the template rendering process. This technique leverages Python's Method Resolution Order (MRO) or base class attributes to access dangerous functions like `__import__`. Attackers can craft payloads that bypass filters by using different encoding methods or by exploiting alternative template delimiters like `{% %}` instead of the default `{{ }}`. Blind SSTI can be exploited through comparative logic within conditional statements, allowing for byte-by-byte data exfiltration by observing server response times. → onsecurity.io
2026-04-10 2026Flask & Jinja2 SSTI cheatsheet beginner 5 min readCheatsheet detailing Server-Side Template Injection (SSTI) specifically for Flask and Jinja2, covering reconnaissance techniques like probing `{{7*'7'}}`, basic exploitation using `__mro__` and `__subclasses__` to access Python objects, identifying sinks like `flask.render_template_string`, leveraging global variables (`config`, `request`, `session`), and performing arbitrary file reads or remote code execution. It also includes methods for bypassing filters using techniques like `|attr()` and string concatenation, and mentions tools like Tplmap and search.py.
2026-04-10 2026Exploit-DB: Twig 2.4.4 Server Side Template Injection intermediateTwig <2.4.4 server-side template injection allows attackers to execute commands by injecting them within parameters, typically via GET or POST requests. This vulnerability arises from improper handling of template syntax, enabling arbitrary code execution by replacing expected values with commands like `{{ls}}` or `{{4*4}}` within a search parameter. → exploit-db.com
2026-04-10 2026CVE-2023-49964: FreeMarker SSTI in Alfresco newsCVE-2023-49964 in Hyland Alfresco Community Edition <=7.2.0 allows for Server-Side Template Injection (SSTI) via malicious content in folder.get.html.ftl. Attackers can leverage exposed FreeMarker objects to bypass restrictions and achieve Remote Code Execution (RCE). This vulnerability, an incomplete fix for CVE-2020-12873, requires valid user credentials for exploitation.
2026-04-10 2026GitHub Security Lab: SSTI in Apache Camel — CVE-2020-11994 news 4 min readCVE-2020-11994 in Apache Camel's FreeMarker, Velocity, and MVEL components allows Server-Side Template Injection (SSTI) leading to Remote Code Execution (RCE) and Arbitrary File Disclosure by controlling template content or resource URIs. The Mustache component is also vulnerable to Arbitrary File Disclosure via its resource URI header. → securitylab.github.com
2026-04-10 2026Breaking the Barrier: RCE via SSTI in FreeMarker intermediate 5 min readRemote code execution (RCE) is achievable through Server-Side Template Injection (SSTI) in outdated versions of the FreeMarker template engine, specifically versions prior to 2.3.30. Exploiting the `freemarker.template.utility.Execute` class allows for command execution. Even after a sandboxing mechanism was implemented, a bypass exists by leveraging class loaders and reflection to access and execute the `Execute` class, demonstrating a vulnerability in FreeMarker versions affected by CVE-2021–25770.
2026-04-10 2026Synack: Discovering an SSTI vulnerability in FreeMarker intermediate 5 min readDiscovering a Server-Side Template Injection (SSTI) vulnerability in FreeMarker that leads to Remote Code Execution (RCE) involved identifying template editing functionalities and testing for injection. After initial payloads failed, confirmation of FreeMarker usage was achieved through specific string manipulation and date formatting tests. A bypass of content filters was then developed using the `?lower_abc` function to encode characters, successfully allowing the execution of RCE payloads like "id," "whoami," and "pwd." → synack.com
2026-04-10 2026YesWeHack: Limitations are just an illusion — advanced SSTI exploitation with RCE everywhere advanced 7 min read RCEServer-side template injection (SSTI) exploitation techniques are detailed for popular template engines like Jinja2, Mako, Twig, Smarty, and Blade, demonstrating how to achieve remote code execution (RCE) without relying on quotes or external plugins. The research focuses on leveraging built-in functions and variables within each engine, such as Jinja2's `self.__init__.__globals__` or Twig's `_charset` variable, to construct payloads and bypass security filters. This approach allows for creative exploitation of template limitations to gain access to underlying systems. → yeswehack.com
2026-04-10 2026vladko312/SSTImap: Automatic SSTI detection tool with interactive interface intermediate 6 min readTool for automatic Server-Side Template Injection (SSTI) detection and exploitation, inspired by Tplmap. SSTImap supports various template engines including Java, JavaScript, PHP, Python, and Ruby, and can exploit code context escapes and blind injection scenarios. It offers interactive mode for easier exploitation and detection, supports eval()-like code injections, and provides capabilities for OS command execution, file system manipulation, and code evaluation. New techniques and payloads, drawing from research by James Kettle and others, enhance its ability to identify and leverage SSTI vulnerabilities.
2026-04-10 2026epinna/tplmap: SSTI and Code Injection Detection and Exploitation Tool intermediate 2 min readTool for detecting and exploiting Server-Side Template Injection (SSTI) and code injection vulnerabilities. Tplmap assists in gaining operating system access through sandbox escape techniques, supporting Python, Ruby, PHP, and Java eval()-like injections across over 15 template engines, including Jinja2. It offers capabilities for shell command execution, bind and reverse shells, file upload/download, and code evaluation.
2026-04-10 2026PayloadsAllTheThings SSTI: Java intermediate 5 min readLibrary cataloging common Java Server-Side Template Injection (SSTI) payloads across various templating engines. This resource details exploit techniques for JSP, Thymeleaf, FreeMarker, Jinjava, Pebble, and Velocity. It includes specific payload examples for command execution, demonstrating how to leverage Expression Languages, built-in functions like `lower_abc` in FreeMarker, and dynamic class loading in engines like Jinjava and Pebble to achieve Remote Code Execution (RCE).
2026-04-10 2026PayloadsAllTheThings: Server Side Template Injection beginner 4 min readLibrary providing resources on Server-Side Template Injection (SSTI). It details techniques like Rendered, Error-Based, Boolean-Based, and Time-Based exploitation, and references tools such as Hackmanit/TInjA and epinna/tplmap. The library includes information on identifying template engines like Jinja2, Twig, and FreeMarker, and discusses specific research papers on SSTI detection and exploitation.
2026-04-10 2026HackTricks: Jinja2 SSTI intermediate 8 min readJinja2 Server-Side Template Injection (SSTI) allows attackers to execute arbitrary code by injecting malicious templates. This technique leverages the ability to access and manipulate Python objects within the Jinja2 sandbox, such as `config` or `request`, to retrieve class definitions and their subclasses. Attackers can then exploit classes like `subprocess.Popen` or file manipulation classes for remote code execution or file read/write operations. Even when traditional template tags are blocked, statement tags like `{% with %}` or `{% if %}` can be used for code execution and data leakage. → book.hacktricks.xyz
2026-04-10 2026HackTricks: SSTI (Server Side Template Injection) beginner 26 min readServer-side template injection (SSTI) occurs when attackers inject malicious code into templates executed server-side, impacting technologies like Jinja. Vulnerabilities arise when user-controlled data becomes the template source, allowing code execution via crafted payloads. Detecting SSTI involves fuzzing templates with special characters and observing server responses for errors or unexpected processing. Tools like `tinja` and `sstimap` can help scan for these vulnerabilities. Prevention relies on distinguishing template source from data, validating input, and avoiding direct compilation of untrusted strings. → book.hacktricks.xyz
2026-04-10 2026OWASP Testing for Server Side Template Injection beginner 3 min readReference for testing Server-Side Template Injection (SSTI) vulnerabilities in web applications, a common flaw found when user input is unsafely embedded in templating engines like Jinja2 and Twig, potentially leading to remote code execution. The guide details methods for detecting injection points, identifying templating engines, and building exploits, referencing tools such as Tplmap and Burp Suite extensions. It also covers testing in both plaintext and code contexts. → owasp.org
2026-04-10 2026Server-side template injection PortSwigger KB intermediate 1 min readServer-side template injection occurs when user input is insecurely embedded into server-side templates, enabling attackers to inject directives that can lead to arbitrary code execution and complete server control. Exploitation difficulty varies by template engine, requiring identification of the engine, mapping its attack surface, and auditing exposed objects. Mitigation involves avoiding user input in templates, using logic-less engines, or sandboxing. → portswigger.net
2026-04-10 2026Exploiting server-side template injection vulnerabilities intermediate 5 min readReference detailing the exploitation of server-side template injection vulnerabilities, covering techniques for discovering and leveraging template engine syntax and documentation, including examples with Mako, ERB, and Velocity. It emphasizes reading documentation, identifying syntax, exploring environment objects like "self," analyzing developer-supplied objects, and constructing custom exploits through object chaining to achieve outcomes ranging from remote code execution to file path traversal. → portswigger.net
2026-04-10 2026Template Injection Research | PortSwigger Research advanced 2 min readTemplate injection, encompassing both client-side (CSTI) and server-side (SSTI) variants, allows attackers to manipulate web applications by injecting malicious template expressions. CSTI, often seen in frameworks like AngularJS, targets browser-executed code and can bypass sandboxes, while SSTI exploits server-side templating engines, potentially leading to Remote Code Execution (RCE). Research details techniques for detecting and exploiting various templating engines, including bypassing Content Security Policy (CSP) and breaking AngularJS sandboxes through interactive labs and real-world examples. → portswigger.net
2026-04-10 2026Server-Side Template Injection | PortSwigger Research advanced 18 min readReference for Server-Side Template Injection (SSTI) details a methodology for detecting and exploiting template engines like Twig and FreeMarker, which are commonly used to embed dynamic content. SSTI vulnerabilities arise when user input is unsafely embedded in templates, potentially leading to Remote Code Execution (RCE). The research outlines detection techniques for both "text" and "variable" contexts, emphasizing the importance of identifying the specific template engine and its documentation to craft effective exploits, including escaping sandbox modes. → portswigger.net
2026-04-10 2026Server-side template injection | Web Security Academy beginner 8 min readServer-side template injection is a dangerous vulnerability where attackers can inject malicious payloads into templates, leading to arbitrary code execution and sensitive data exposure. This occurs when user input is directly concatenated into templates rather than treated as data, allowing attackers to manipulate template engines and potentially gain full server control. Detecting these vulnerabilities often involves fuzzing with special characters or testing specific contexts like plaintext rendering or code evaluation, with the impact ranging from data theft to complete system compromise. → portswigger.net