> CVE-2024-34064 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2024-05-06 15:15
MODIFIED
2025-09-08 19:27
CVSS_SCORE V3
5.4
EPSS (Prob. Exploit)
0.98%
Top 37.6%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-11 OSV 🔗 2026-11-08 MSRC 🔗 2026-02-01

> DESCRIPTION

Jinja is an extensible templating engine. The `xmlattr` filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. The fix for CVE-2024-22195 only addressed spaces but not other characters. Accepting keys as user input is now explicitly considered an unintended use case of the `xmlattr` filter, and code that does so without otherwise validating the input should be flagged as insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe. This vulnerability is fixed in 3.1.4.

> AFFECTED_PRODUCTS

Fedoraproject - Fedora
Version: 39
Fedoraproject - Fedora
Version: 40
Palletsprojects - Jinja
< 3.1.4

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> RED HAT SECURITY ADVISORIES

Red Hat Security Advisory: RHUI 4.11 security, bugfix, and enhancement update
An updated version of Red Hat Update Infrastructure (RHUI) is now available. RHUI 4.11 updates Pulp to a newer upstream version, fixes several issues, and adds an enhancement.
Red Hat Security Advisory: python-jinja2 security update
An update for python-jinja2 is now available for Red Hat Enterprise Linux 9. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring Sys...

> GITHUB SECURITY ADVISORY

GHSA-h75v-3vvj-5mfj MODERATE

Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter

AFFECTED PACKAGES:
PIP / Jinja2
< 3.1.4
Fixed in: 3.1.4

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter

AFFECTED PACKAGES:
Unknown / Unknown
25 versions affected
ALIASES:
GHSA-h75v-3vvj-5mfj, PYSEC-2026-1474

> HISTORIQUE DES MODIFICATIONS

Première apparition
06/05/2024 15:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:50
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME