PyPI package

Jinja2 2.9.2 vulnerabilities, and the version that fixes all of them

Jinja2 2.9.2 has 6 known vulnerabilities (1 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
6
1 rated high or critical
Released
Jan 8, 2017
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.

  • 2.11.3

    Newest 2.x release. Released Jan 31, 2021.

    4 known vulnerabilities, worst rated warning
  • 3.1.6Upgrade to this

    Fixes all 6 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

Every advisory for Jinja2 2.9.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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

Check your whole repo

How this page is checked

StackPrism asks OSV.dev which advisories affect exactly Jinja2 2.9.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.