Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Jinja2 versions before 3.1.5 are vulnerable to a sandbox breakout in the Jinja sandboxed environment, which fails to detect indirect calls to the str.format method. An attacker who can control the content of a template can store a reference to a malicious string's format method and pass it to a filter that calls it, executing arbitrary Python code; this requires custom filters, since none are built into Jinja. Upgrade jinja2 to version 3.1.5 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.0052, the 44th percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 21 Dec 2024, 18:31 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 14:35 UTC First seen by agentprime
- 31 Oct 2026, 14:35 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-q2x7-8rv6-6q7h
- OSV: GHSA-q2x7-8rv6-6q7h
- github.com/pallets/jinja/security/advisories/GHSA-q2x7-8rv6-6q7h
- nvd.nist.gov/vuln/detail/CVE-2024-56326
- github.com/pallets/jinja/commit/48b0687e05a5466a91cd5812d604fa37ad0943b4
- github.com/pallets/jinja
- github.com/pallets/jinja/releases/tag/3.1.5
- lists.debian.org/debian-lts-announce/2025/04/msg00022.html