Avoiding Templates injection The best way to prevent server-side template injection is to not allow any users to modify or submit new templates. Read more