CVE-2024-34064
Python vulnerability analysis and mitigation

Overview

CVE-2024-34064 affects Jinja, an extensible templating engine, in versions prior to 3.1.4. The vulnerability exists in the xmlattr filter which accepts keys containing non-attribute characters. The issue was discovered in May 2024 and was assigned a CVSS v3.1 base score of 5.4 (Moderate) (GitHub Advisory).

Technical details

The vulnerability stems from the xmlattr filter accepting keys containing characters that are invalid in XML/HTML attributes, specifically spaces, / (solidus), > (greater-than sign), or = (equals sign). These characters would be interpreted as starting separate attributes in XML/HTML context. This is a continuation of the fix for CVE-2024-22195, which only addressed spaces but not other characters (GitHub Advisory).

Impact

If an application accepts keys (as opposed to only values) as user input and renders these in pages that other users can view, an attacker could exploit this vulnerability to inject additional HTML attributes and perform Cross-Site Scripting (XSS) attacks (GitHub Advisory).

Exploitability

The vulnerability requires user interaction and network access. An attacker needs no privileges to exploit this vulnerability, though the attack complexity is considered low. The vulnerability has been assigned CWE-79 (Improper Neutralization of Input During Web Page Generation) (NVD).

Mitigation and workarounds

The vulnerability is fixed in Jinja version 3.1.4. Users should upgrade to this version. Additionally, it is now explicitly considered an unintended use case to accept keys as user input for the xmlattr filter. Applications should either avoid using user input as keys or implement separate validation before using such input. Note that accepting values (as opposed to keys) as user input continues to be safe (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61539CRITICAL10
  • Python logoPython
  • xinference
NoYesAug 21, 2026
CVE-2026-49360HIGH7.8
  • Python logoPython
  • recce
NoYesAug 21, 2026
CVE-2026-68508HIGH7.8
  • Python logoPython
  • hydra-core
NoYesAug 21, 2026
CVE-2026-54457HIGH7.7
  • Python logoPython
  • tensorzero
NoYesAug 21, 2026
CVE-2026-43980MEDIUM6.3
  • Python logoPython
  • malla
NoNoAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management