CISA list

● PyPI package

jinja2

Jinja2 has 10 security advisories. The newest release any of them names as the fix is 3.1.6.

As of , jinja2 has 10 security advisories. The newest release any of them names as the fix is 3.1.6.

Your version, and the version to upgrade to

Find the row your installed version falls in. The second column is the first release after it that none of the advisories lists as affected; a release outside every row is one no advisory lists. That is what the advisories say, not a promise that a release is free of flaws.
If you runUpgrade toAdvisories
Before 3.1.63.1.610 advisories

Security advisories, newest first

Security advisories, newest first
AdvisoryWhat it isAffectsFixed inPublished
CVE-2025-27516GHSA-cpwx-vrp4-4pq7, PYSEC-2026-1471Jinja2 vulnerable to sandbox breakout through attr filter selecting format methodModerate severityBefore 3.1.63.1.6
CVE-2024-56326GHSA-q2x7-8rv6-6q7h, PYSEC-2026-1475Jinja has a sandbox breakout through indirect reference to format methodModerate severityBefore 3.1.53.1.5
CVE-2024-56201GHSA-gmj6-6f8f-6699, PYSEC-2026-1472Jinja has a sandbox breakout through malicious filenamesModerate severityFrom 3.0.0 before 3.1.53.1.5
CVE-2024-34064GHSA-h75v-3vvj-5mfj, PYSEC-2026-1474Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filterModerate severityBefore 3.1.43.1.4
CVE-2024-22195GHSA-h5c8-rqwp-cp95, PYSEC-2026-1473Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filterModerate severityBefore 3.1.33.1.3
CVE-2020-28493GHSA-g3rq-g295-4j3m, PYSEC-2021-66Regular Expression Denial of Service (ReDoS) in Jinja2Moderate severityBefore 2.11.32.11.3
CVE-2016-10745GHSA-hj2j-77xm-mc5v, PYSEC-2019-220Jinja2 sandbox escape vulnerabilityHigh severityBefore 2.8.12.8.1
CVE-2019-10906GHSA-462w-v97r-4m45, PYSEC-2019-217Jinja2 sandbox escape via string formattingHigh severityBefore 2.10.12.10.1
CVE-2014-1402GHSA-8r7q-cvjq-x353, PYSEC-2014-8Incorrect Privilege Assignment in Jinja2High severityBefore 2.7.22.7.2
CVE-2014-0012GHSA-fqh9-2qgg-h84h, PYSEC-2014-82Insecure Temporary File in Jinja2Moderate severityBefore 2.7.32.7.3

Other PyPI packages

Sources
  • Package advisories from the GitHub Advisory Database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0
  • Package advisories from the PyPA advisory database (CC BY 4.0). Version ranges are reworded as sentences (source). Licence: CC BY 4.0