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 VendorProductAffected 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.
References
Fix within
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)
Severity
8.4 High
Timeline
Published22 Nov 2026
Updated25 Nov 2026
First seen25 Nov 2026
Track software like this
Free during beta