Skip to main content
No exploitation reportedFix available

CVE-2024-22195

No exploitation reported by the sources we read.

  • Published2024-01-11
  • Fixed in3.1.3
  • WeaknessCWE-79

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.

Timeline

dates in UTC
  1. 2024-01-1103:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-22195?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-22195?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
Palletsprojects jinja
BranchAffectedFixed in
3.1< 3.1.33.1.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • babelAlmaLinux:8all versions · fixed in 2.5.1-10.module_el8.6.0+2781+fed64c13and 1 other package
  • fence-agents-apcAlmaLinux:8all versions · fixed in 4.2.1-129.el8and 46 other packages
  • fence-virtdAlmaLinux:9all versions · fixed in 4.10.0-62.el9and 54 other packages
  • python2AlmaLinux:8all versions · fixed in 2.7.18-17.module_el8.10.0+3783+2756348e.almaand 6 other packages
  • python2-attrsAlmaLinux:8all versions · fixed in 17.4.0-10.module_el8.6.0+2781+fed64c13
  • python2-backportsAlmaLinux:8all versions · fixed in 1.0-16.module_el8.6.0+2781+fed64c13
  • python2-backportsAlmaLinux:8all versions · fixed in 1.0-16.module_el8.6.0+3162+01a09e5a
  • python2-backports-ssl_match_hostnameAlmaLinux:8all versions · fixed in 3.5.0.1-12.module_el8.6.0+2781+fed64c13

46 more package ranges on OSV.dev

Vendor advisories

  • RHSA-2024:3927 Red Hat Product Security22 products fixed

    Red Hat Security Advisory: Red Hat Ceph Storage 7.1 container image security, and bug fix update

Full record on NVD

Fix

  1. Update Palletsprojects jinja to 3.1.3
  2. Vendor fix Red Hat Product Security RHSA-2024:3927 · 22 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/7 For supported configurations, refer to: https://access.redhat.…
  3. Workaround from the vendor Red Hat Product Security RHSA-2024:3927 · 22 productsMitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • CISA-ADPSSVC decisionnone2024-01-11
  • OpenCVESSVC decisionnone—
  • CNACVSS 3.15.4read 2026-10-23
  • NVDCVSS 3.16.1read 2026-10-23
  • CNAweakness (CWE)CWE-79read 2026-10-23
  • NVDweakness (CWE)CWE-79read 2026-10-23
  • FIRST EPSSEPSS score0.9 %2026-10-22
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
2024-01-11
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2024-22195?

Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.

Is CVE-2024-22195 actively exploited?

Active exploitation of CVE-2024-22195 has not been confirmed. Its EPSS score was 0.9% on 2026-10-22, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-22195?

CVE-2024-22195 has a CVSS v3 base score of 6.1 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.

Running Red Hat Ceph Storage 7.1? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month