Is jinja2 2.1 vulnerable?
PyPI · 2 releases from 2.1.0 to 2.1.1 · latest jinja2 is 3.1.6 · checked 18 Nov 2026
Yes: 9 known advisories
Yes. jinja2 2.1.1, the last 2.1 release, is affected by 9 known security advisories (3 high, 6 medium), including CVE-2014-1402, CVE-2019-10906, CVE-2016-10745. Upgrade to 3.1.6 or later to fix all of them.
pip install 'jinja2>=3.1.6'Is your project on an affected jinja2?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Advisories affecting jinja2 2.1.1
Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
- Affected
- <3.1.6
- Fixed in
- 3.1.6
Jinja has a sandbox breakout through indirect reference to format method
- Affected
- <3.1.5
- Fixed in
- 3.1.5
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
- Affected
- <3.1.4
- Fixed in
- 3.1.4
Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
- Affected
- <3.1.3
- Fixed in
- 3.1.3
Insecure Temporary File in Jinja2
- Affected
- <2.7.2
- Fixed in
- 2.7.2
Incorrect Privilege Assignment in Jinja2
- Affected
- <2.7.2
- Fixed in
- 2.7.2
Regular Expression Denial of Service (ReDoS) in Jinja2
- Affected
- <2.11.3
- Fixed in
- 2.11.3
Jinja2 sandbox escape via string formatting
- Affected
- <2.10.1
- Fixed in
- 2.10.1
Jinja2 sandbox escape vulnerability
- Affected
- <2.8.1
- Fixed in
- 2.8.1
Every jinja2 2.1.x release
Affected: 2.1.0 to 2.1.1. Latest jinja2: 3.1.6.
| Version | Known advisories |
|---|---|
| jinja2 2.1.1 | CVE-2025-27516, CVE-2024-56326, CVE-2024-34064, CVE-2024-22195, CVE-2014-0012, CVE-2014-1402, CVE-2020-28493, CVE-2019-10906, CVE-2016-10745 |
| jinja2 2.1.0 | CVE-2025-27516, CVE-2024-56326, CVE-2024-34064, CVE-2024-22195, CVE-2014-0012, CVE-2014-1402, CVE-2020-28493, CVE-2019-10906, CVE-2016-10745 |
Which of your client projects are still on jinja2 2.1?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact jinja2 version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other jinja2 versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.