Server-Side Template Injection (SSTI)
A flaw where user input is interpreted by a server-side template engine, allowing code execution.
What it is
Many applications build pages using template engines that mix fixed layout with dynamic values. Server-side template injection occurs when untrusted input is fed into the template itself rather than treated as plain data, letting an attacker execute template commands. Because templates can be powerful, this often escalates to running code on the server.
Why it matters
SSTI frequently leads to full server compromise, making it a high-impact flaw whenever user input influences how templates are built.
How to fix it
Never build templates from user input; pass user data only as values into a fixed template, and use sandboxed or logic-less template engines.