Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.
CVE-2025-27516
This high-severity CVE scores 8.8 under NVD CVSS v3. EPSS exploit probability: 0.1%, top 69% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8(medium)
- EPSS
- 38.0%
- KEV
- Not listed
Published
March 5, 2025
Last Modified
November 3, 2025
References (4)
- security-advisories@githubhttps://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403
- security-advisories@githubhttps://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2025/04/msg00022.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2025/04/msg00045.html
Vendor Advisories for CVE-2025-27516(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2025-27516Microsoft Security Response Center (MSRC)Medium
Jinja sandbox breakout through attr filter selecting format method
- RHSA-2025:4730Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.16.40 security and extras update
- RHSA-2025:7476Red Hat Product SecurityHigh
Red Hat Security Advisory: python-jinja2 security update
- RHSA-2025:4431Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.17.28 bug fix and security update
- RHSA-2025:4408Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.12.76 security and extras update
- RHSA-2025:4203Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.17.27 security and extras update
- RHSA-2025:4018Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.18.10 security and extras update
- RHSA-2025:3779Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.13.57 security and extras update
- +12 more
Patch Availability(30)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| jinja2 | 2.0 ... 3.1.5 (51 versions) | 3.1.6 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(12)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2025:2664IMPORTANT2025-03-05
RHSA-2025:2664 — Important
- Red HatRHSA-2025:2688IMPORTANT2025-03-05
RHSA-2025:2688 — Important
- Red HatRHSA-2025:3017IMPORTANT2025-03-05
RHSA-2025:3017 — Important
- Red HatRHSA-2025:3111IMPORTANT2025-03-05
RHSA-2025:3111 — Important
- Red HatRHSA-2025:3113IMPORTANT2025-03-05
RHSA-2025:3113 — Important
- Red HatRHSA-2025:3123IMPORTANT2025-03-05
RHSA-2025:3123 — Important
- Red HatRHSA-2025:3124IMPORTANT2025-03-05
RHSA-2025:3124 — Important
- Red HatRHSA-2025:3160IMPORTANT2025-03-05
RHSA-2025:3160 — Important
- Red HatRHSA-2025:3162IMPORTANT2025-03-05
RHSA-2025:3162 — Important
- Red HatRHSA-2025:3371IMPORTANT2025-03-05
RHSA-2025:3371 — Important
- Red HatRHSA-2025:3374IMPORTANT2025-03-05
RHSA-2025:3374 — Important
- Red HatRHSA-2025:3388IMPORTANT2025-03-05
RHSA-2025:3388 — Important
Data Freshness Timeline
(refreshed 12× in last 7d / 49× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-16 17:02 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 06:12 UTCEPSS rescore
- 2026-07-13 06:12 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:14 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-07 08:21 UTCOSV refresh
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-02 17:01 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
Show 57 moreShow fewer
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 19:35 UTCOSV refresh
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:17 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 13:59 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-30 10:05 UTCEG score recompute
- 2026-05-30 10:05 UTCVendor advisory
- 2026-05-30 07:59 UTCOSV refresh
- 2026-05-29 13:44 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-1336
- CVE-2025-34300EG 10.0EPSS 99%CRITICAL
- CVE-2025-53833EG 10.0EPSS 95%CRITICAL
- CVE-2025-47916EG 10.0EPSS 100%CRITICAL
- CVE-2025-46661EG 10.0CRITICAL
- CVE-2024-32651EG 10.0EPSS 100%CRITICAL
- CVE-2025-14700EG 9.9EPSS 93%CRITICAL
- CVE-2025-32461EG 9.9CRITICAL
- CVE-2025-23211EG 9.9CRITICAL
- CVE-2024-12583EG 9.9CRITICAL
- CVE-2024-6386EG 9.9EPSS 98%CRITICAL
Frequently asked(5)
What is CVE-2025-27516?
When was CVE-2025-27516 disclosed?
Is CVE-2025-27516 actively exploited?
What is the CVSS score of CVE-2025-27516?
How do I remediate CVE-2025-27516?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-27516
Is Your Infrastructure Affected by CVE-2025-27516?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.