jinja2 Known Vulnerabilities & Fixes
jinja2 has 4 known security vulnerabilities in PyPI (Python). Upgrade to version 3.1.6 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 3.1.6
Upgrading to 3.1.6 or later resolves all 4 known vulnerabilities in jinja2. Run: pip install "jinja2>=3.1.6"
Is jinja2 in your project?
Check if you're affected and upgrade to 3.1.6 to stay secure.
Security Summary
- 4 affected version ranges have been identified across these 4 advisories.
- 100% of known issues have a published fixed version.
- Highest exploit-probability (EPSS) score for jinja2: 1.0%.
- Remediation: pip install --upgrade jinja2
Vulnerabilities
4 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed May 6, 2024, most recently Mar 5, 2025 (303 days apart).
| CVE / GHSA | Severity |
|---|---|
| CVE-2024-34064 Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
| MEDIUM |
| CVE-2024-56326 Jinja has a sandbox breakout through indirect reference to format method
| MEDIUM |
| CVE-2025-27516 Jinja2 vulnerable to sandbox breakout through attr filter selecting format method
| MEDIUM |
| CVE-2024-56201 Jinja has a sandbox breakout through malicious filenames
| MEDIUM |
About This Data
Vulnerability data for jinja2 is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related PyPI (Python) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of jinja2.