HighGHSA-hj2j-77xm-mc5vCVE-2016-10745PYSEC-2019-220
Jinja2 sandbox escape vulnerability
Published 10 Apr 2019 · Updated 24 Sept 2024
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
Affected package
jinja2PyPI
- Affected
- <2.8.1
- Fixed in
- 2.8.1
Update to the fixed version for your release line, for example:
pip install 'jinja2>=2.8.1'Details
In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.
Is GHSA-hj2j-77xm-mc5v in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected jinja2, and gives you the command that fixes it.
More advisories for jinja2
- MediumCVE-2025-27516Jinja2 vulnerable to sandbox breakout through attr filter selecting format method · 5 Mar 2025
- MediumCVE-2024-56326Jinja has a sandbox breakout through indirect reference to format method · 23 Dec 2024
- MediumCVE-2024-56201Jinja has a sandbox breakout through malicious filenames · 23 Dec 2024
- MediumCVE-2024-34064Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter · 6 May 2024
- MediumCVE-2024-22195Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter · 11 Jan 2024
- MediumCVE-2014-0012Insecure Temporary File in Jinja2 · 17 May 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-10745
- Linkgithub.com/pallets/jinja/commit/9b53045c34e61013dc8f09b7e52a555fa16bed16
- Linkaccess.redhat.com/errata/RHSA-2019:1022
- Linkaccess.redhat.com/errata/RHSA-2019:1237
- Linkaccess.redhat.com/errata/RHSA-2019:1260
- Linkaccess.redhat.com/errata/RHSA-2019:3964
- Linkaccess.redhat.com/errata/RHSA-2019:4062
- Advisorygithub.com/advisories/GHSA-hj2j-77xm-mc5v
- Packagegithub.com/pallets/jinja
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2019-220.yaml
- Linkpalletsprojects.com/blog/jinja-281-released
- Linkusn.ubuntu.com/4011-1
- Linkusn.ubuntu.com/4011-2
- Linklists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html
- Linklists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.