PyPI package
Jinja2 2.7.0 vulnerabilities, and the version that fixes all of them
Jinja2 2.7.0 has 9 known vulnerabilities (3 rated high or critical); 3.1.6 fixes all of them.
PyPI (opens in a new tab) describes it as “A very fast and expressive template engine.”
- Known vulnerabilities
- 9
- 3 rated high or critical
- Released
- May 20, 2013
- Latest is 3.1.6
- Licence
- BSD License
- Dependencies
- None
- Resolved by deps.dev
What to upgrade to
3.1.6 is the closest release with no known vulnerabilities.
Newest 2.x release. Released Jan 31, 2021.
4 known vulnerabilities, worst rated warning3.1.6Upgrade to this
Fixes all 9 known vulnerabilities and the latest release. Released Mar 5, 2025.
No known vulnerabilities
3.1.6 came out on Mar 5, 2025. A coding agent trained before then doesn’t know it exists, so it may suggest an older release. AI knowledge cutoff dates
Hand the fix to your coding agent
One task with the upgrade, the file to change and why. Paste it into Claude Code, Cursor or Codex.
Findings
- CriticalVulnerability
9 known vulnerabilities in jinja2 2.7.0
EPSS: top 11%3 rated high or critical. Most serious: CVE-2019-10906, Jinja2 sandbox escape via string formatting. Upgrading to 3.1.6 fixes all of them.
- LowOutdated
jinja2 2.7.0 is 1 major version behind
Latest release is 3.1.6.
Every advisory for Jinja2 2.7.0
Known exploited first (CISA KEV), then by how likely they are to be exploited (FIRST EPSS), then by severity. Each id links to its OSV.dev record.
WarningCVE-2020-28493 on OSV.dev (opens in a new tab)GHSA-g3rq-g295-4j3mEPSS: top 11%
Regular Expression Denial of Service (ReDoS) in Jinja2
Fixed in 2.11.3. Published Mar 19, 2021.
CriticalCVE-2019-10906 on OSV.dev (opens in a new tab)GHSA-462w-v97r-4m45EPSS: top 11%
Jinja2 sandbox escape via string formatting
Fixed in 2.10.1. Published Apr 10, 2019.
CriticalCVE-2016-10745 on OSV.dev (opens in a new tab)GHSA-hj2j-77xm-mc5vEPSS: top 11%
Jinja2 sandbox escape vulnerability
Fixed in 2.8.1. Published Apr 10, 2019.
WarningCVE-2024-34064 on OSV.dev (opens in a new tab)GHSA-h75v-3vvj-5mfjEPSS: top 39%
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
Fixed in 3.1.4. Published May 6, 2024.
WarningCVE-2024-22195 on OSV.dev (opens in a new tab)GHSA-h5c8-rqwp-cp95EPSS: top 42%
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
Fixed in 3.1.3. Published Jan 11, 2024.
WarningCVE-2024-56326 on OSV.dev (opens in a new tab)GHSA-q2x7-8rv6-6q7hEPSS: top 58%
Jinja has a sandbox breakout through indirect reference to format method
Fixed in 3.1.5. Published Dec 23, 2024.
WarningCVE-2025-27516 on OSV.dev (opens in a new tab)GHSA-cpwx-vrp4-4pq7EPSS: top 59%
Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
Fixed in 3.1.6. Published Mar 5, 2025.
WarningCVE-2014-0012 on OSV.dev (opens in a new tab)GHSA-fqh9-2qgg-h84hEPSS: top 64%
Insecure Temporary File in Jinja2
Fixed in 2.7.2. Published May 17, 2022.
CriticalCVE-2014-1402 on OSV.dev (opens in a new tab)GHSA-8r7q-cvjq-x353EPSS: top 71%
Incorrect Privilege Assignment in Jinja2
Fixed in 2.7.2. Published May 14, 2022.
Is Jinja2 the only one?
Paste a public GitHub repo or drop your requirements.txt or pyproject.toml and see every vulnerable, end-of-life or deprecated dependency, with one fix task. Free, no sign-up.
How this page is checked
StackPrism asks OSV.dev which advisories affect exactly Jinja2 2.7.0, merges duplicates filed under several ids, and ranks them with CISA’s Known Exploited Vulnerabilities list and FIRST EPSS. Release dates and deprecation come from deps.dev and PyPI. No AI writes this page: every sentence comes from that data, refreshed every few hours.
Last checked against PyPI, OSV.dev, deps.dev, CISA KEV and FIRST EPSS.