Skip to main content
CVE-2024-22195VulnerabilityPublished Updated

Red Hat Security Advisory: python-jinja2 security update

Affects Red Hat python-jinja2Source GCVE Database

0
Compare
Authoritative record:CVE-2024-22195· Medium 5.4

Not known to be exploited · CVSS 5.4 Medium : upgrade Red Hat jinja to 3.1.3 when convenient.

Data as of 1 Nov 2026, 08:20 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.15.4
EPSS
0.8% chance of exploitation in 30 days – higher than 59% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.1.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Jan 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 31 Oct 2026.

What to do

Upgrade jinja to 3.1.3.

Affected software

ProductAffectedFixed in
PyPIjinjapkg:pypi/jinjaOther threatsAffected
  • <3.1.3
Fixed in
  • 3.1.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Red Hat has released an official security update for python-jinja2 in Red Hat Enterprise Linux 9 and its extended support versions. Applying this update and restarting all applications that use Jinja2 is required to remediate the vulnerability. Users should follow Red Hat's update instructions at https://access.redhat.com/articles/11258. No additional mitigation steps are indicated by the vendor.

Description

A security update for the python-jinja2 package addresses an HTML attribute injection vulnerability (CVE-2024-22195) that occurs when user input is passed as keys to the xmlattr filter. This vulnerability affects Red Hat Enterprise Linux 9 and related variants. The issue has been rated as having moderate security impact by Red Hat Product Security. The update requires restarting all applications using Jinja2 to take effect.

References

Community reviews

Loading reviews…