Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Jinja2 versions before 3.1.6 are vulnerable to a sandbox breakout through the attr filter, which can be used to obtain a plain string format method that the sandbox fails to block. An attacker who can control the content of a template, which applies to applications that run untrusted templates, can execute arbitrary Python code. Upgrade to Jinja2 3.1.6 or later.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 5.4 | Medium | 4.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0051, the 43rd percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 5 Mar 2025, 20:05 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 14:37 UTC First seen by agentprime
- 31 Oct 2026, 14:37 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-cpwx-vrp4-4pq7
- OSV: GHSA-cpwx-vrp4-4pq7
- github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7
- nvd.nist.gov/vuln/detail/CVE-2025-27516
- github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403
- github.com/pallets/jinja
- lists.debian.org/debian-lts-announce/2025/04/msg00022.html
- lists.debian.org/debian-lts-announce/2025/04/msg00045.html