Jinja2

A very fast and expressive template engine.

3.1.6Latest, 5 Mar 2025
711MDownloads, last month
0Advisories on the latest
20Advisories, all versions
non-standardLicence
12KStars
5.9/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
Jinja2 vulnerable to sandbox breakout through attr filter selecting format method CVE-2025-27516 Fixed in 3.1.6 7 Jul 2026
Jinja has a sandbox breakout through malicious filenames CVE-2024-56201 Fixed in 3.1.5 7 Jul 2026
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter CVE-2024-22195 Fixed in 3.1.3 7 Jul 2026
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter CVE-2024-34064 Fixed in 3.1.4 7 Jul 2026
Jinja has a sandbox breakout through indirect reference to format method CVE-2024-56326 Fixed in 3.1.5 7 Jul 2026
Moderate Jinja2 vulnerable to sandbox breakout through attr filter selecting format method CVE-2025-27516 Fixed in 3.1.6 5 Mar 2025
Moderate Jinja has a sandbox breakout through malicious filenames CVE-2024-56201 Fixed in 3.1.5 23 Dec 2024
Moderate Jinja has a sandbox breakout through indirect reference to format method CVE-2024-56326 Fixed in 3.1.5 23 Dec 2024
Moderate Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter CVE-2024-34064 Fixed in 3.1.4 6 May 2024
Moderate Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter CVE-2024-22195 Fixed in 3.1.3 11 Jan 2024
Moderate Insecure Temporary File in Jinja2 CVE-2014-0012 Fixed in 2.7.2 17 May 2022
High Incorrect Privilege Assignment in Jinja2 CVE-2014-1402 Fixed in 2.7.2 14 May 2022
Moderate Regular Expression Denial of Service (ReDoS) in Jinja2 CVE-2020-28493 Fixed in 2.11.3 19 Mar 2021
PYSEC-2021-66 CVE-2020-28493 Fixed in 2.11.3 1 Feb 2021
High Jinja2 sandbox escape via string formatting CVE-2019-10906 Fixed in 2.10.1 10 Apr 2019

In the news

On Hacker News

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.