In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.
CVE-2016-10745 (Candidate) is related to these bugs: