Advisory record · GHSA-gmj6-6f8f-6699

Jinja has a sandbox breakout through malicious filenames

CVSS 5.4 MediumEPSS 0.0031 · 23rd percentile

Published by the GitHub Advisory Database at 23 Dec 2024, 17:54 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
jinja2PyPI>=3.0.0, <3.1.53.1.5
Identifiers
GHSA-gmj6-6f8f-6699 · CVE-2024-56201 · PYSEC-2026-1472
Weakness (CWE)
CWE-150
Published
23 Dec 2024
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Jinja2 versions 3.0.0 up to but not including 3.1.5 are vulnerable. An attacker who controls both the content and the filename of a template can execute arbitrary Python code, even when Jinja's sandbox is used. Exploitation depends on the application, and the risk applies to applications that run untrusted templates where the template author can also pick the filename. Upgrade to jinja2 3.1.5.

Written 4 Nov 2026.

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

ScoreRatingCVSSVectorSource
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.0031, the 23rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.