PyPI package
Jinja2 2.10.2 vulnerabilities, and the version that fixes all of them
Jinja2 2.10.2 has 5 known vulnerabilities; 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
- 5
- None rated high or critical
- Released
- Oct 4, 2019
- Latest is 3.1.6
- Licence
- BSD License
- Pulls in
- 1 package
- 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 5 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
- WarningVulnerability
5 known vulnerabilities in jinja2 2.10.2
EPSS: top 11%Most serious: CVE-2020-28493, Regular Expression Denial of Service (ReDoS) in Jinja2. Upgrading to 3.1.6 fixes all of them.
- LowOutdated
jinja2 2.10.2 is 1 major version behind
Latest release is 3.1.6.
Every advisory for Jinja2 2.10.2
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.
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.
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.10.2, 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.