Install
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
Source · Ask AI Mode · · Markdown
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
- Jinja2 vs Claude vs SkillSpec in 2026: same skill, 3 ways dev.to, 30 Jul 2026
- Platform Automation Software Engineer (Python, Jinja2, AWS) - Spectrum IT Recruitment | Haystack web.haystackapp.io, 30 Jun 2026
- Jinja2TT2: Jinja2 to Template Toolkit Transpiler dev.to, 28 Jan 2026
- How to Serve a Website With FastAPI Using HTML and Jinja2 – Real Python realpython.com, 17 Nov 2025
- Hands-On Ansible Labs: Roles, Jinja2, Configuration & Python Interpreter Fixes dev.to, 21 Jun 2025
On Hacker News
- Porting Flask to Go – Jinja2 to Pongo2 40 points, 37 comments, 3 Sep 2015
- Show HN: nunjucks, a better templating system for javascript (jinja2 inspired) 38 points, 15 comments, 20 Sep 2012
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.