Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.4
Red Hat Jinja2 may let attackers run code
published 11 days ago
Summary
The Jinja2 templating library used in Red Hat products can be tricked into executing code or injecting malicious HTML when specially crafted data is processed. This could allow an attacker to take control of the system or alter displayed content. Update to the new jinja2 3.1.3+rhlw.1 package, which includes the necessary security fixes.
What to do
- Update redhat jinja2 to version 3.1.3+rhlw.1.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Red Hat Lightwell:PyPI | redhat | jinja2 |
< 3.1.3+rhlw.1 Fix: upgrade to 3.1.3+rhlw.1
|
Original advisory text
Lightwell Security Advisory: jinja2 3.1.3+rhlw.1
Red Hat Lightwell has released jinja2 3.1.3+rhlw.1 with backported fixes for CVE-2025-27516, CVE-2024-34064, CVE-2024-56201, and CVE-2024-56326.
CVE-2025-27516: Jinja sandbox breakout through attr filter selecting format method
CVE-2024-34064: Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
CVE-2024-56201: Jinja has a sandbox breakout through malicious filenames
CVE-2024-56326: Jinja has a sandbox breakout through indirect reference to format method
This patched artifact is a drop-in replacement for jinja2 3.1.3 from PyPI.
CVE-2025-27516: Jinja sandbox breakout through attr filter selecting format method
CVE-2024-34064: Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
CVE-2024-56201: Jinja has a sandbox breakout through malicious filenames
CVE-2024-56326: Jinja has a sandbox breakout through indirect reference to format method
This patched artifact is a drop-in replacement for jinja2 3.1.3 from PyPI.
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27516... Vendor Advisory
- https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-27516 Vendor Advisory
- https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403 Patch
- https://github.com/advisories/GHSA-cpwx-vrp4-4pq7 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/34xxx/CVE-2024-34064... Vendor Advisory
- https://github.com/pallets/jinja/security/advisories/GHSA-h75v-3vvj-5mfj Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-34064 Vendor Advisory
- https://github.com/pallets/jinja/commit/0668239dc6b44ef38e7a6c9f91f312fd4ca581cb Patch
- https://github.com/advisories/GHSA-h75v-3vvj-5mfj Vendor Advisory
- https://github.com/pallets/jinja/releases/tag/3.1.5 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56201... Vendor Advisory
- https://github.com/pallets/jinja/security/advisories/GHSA-gmj6-6f8f-6699 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-56201 Vendor Advisory
- https://github.com/pallets/jinja/issues/1792 Third Party Advisory
- https://github.com/pallets/jinja/commit/767b23617628419ae3709ccfb02f9602ae9fe51f Patch
- https://github.com/advisories/GHSA-gmj6-6f8f-6699 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56326... Vendor Advisory
- https://github.com/pallets/jinja/security/advisories/GHSA-q2x7-8rv6-6q7h Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2024-56326 Vendor Advisory
- https://github.com/pallets/jinja/commit/48b0687e05a5466a91cd5812d604fa37ad0943b4 Patch
- https://github.com/advisories/GHSA-q2x7-8rv6-6q7h Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit (estimated)
- Gives an attacker full control (estimated)
Timeline
Published22 Nov 2026
Updated25 Nov 2026
First seen25 Nov 2026
Sources
Track software like this
Free during beta