Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pallets | jinja | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Ironic content for Red Hat OpenShift Container Platform 4.12 | |||
| python-jinja2-0:3.0.1-3.el9.1 | cpe:/a:redhat:openshift_ironic:4.12::el9 | RHSA-2024:5810 | 2024-08-29T00:00:00Z |
| Ironic content for Red Hat OpenShift Container Platform 4.13 | |||
| python-jinja2-0:3.0.1-3.el9.1 | cpe:/a:redhat:openshift_ironic:4.13::el9 | RHSA-2024:6011 | 2024-09-04T00:00:00Z |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | |||
| python3x-jinja2-0:3.1.4-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2024:3781 | 2024-06-10T00:00:00Z |
| automation-controller-0:4.5.8-1.el8ap | cpe:/a:redhat:ansible_automation_platform:2.4::el8 | RHSA-2024:4522 | 2024-07-12T00:00:00Z |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | |||
| python-jinja2-0:3.1.4-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.4::el9 | RHSA-2024:3781 | 2024-06-10T00:00:00Z |
| automation-controller-0:4.5.8-1.el9ap | cpe:/a:redhat:ansible_automation_platform:2.4::el9 | RHSA-2024:4522 | 2024-07-12T00:00:00Z |
| Red Hat Enterprise Linux 8 | |||
| python-jinja2-0:2.10.1-5.el8_10 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2024:4231 | 2024-07-02T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | |||
| fence-agents-0:4.2.1-65.el8_4.15 | cpe:/a:redhat:rhel_aus:8.4 | RHSA-2024:3795 | 2024-06-11T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Telecommunications Update Service | |||
| fence-agents-0:4.2.1-65.el8_4.15 | cpe:/a:redhat:rhel_tus:8.4 | RHSA-2024:3795 | 2024-06-11T00:00:00Z |
| Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | |||
| fence-agents-0:4.2.1-65.el8_4.15 | cpe:/a:redhat:rhel_e4s:8.4 | RHSA-2024:3795 | 2024-06-11T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | |||
| fence-agents-0:4.2.1-89.el8_6.12 | cpe:/a:redhat:rhel_aus:8.6 | RHSA-2024:4404 | 2024-07-09T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | |||
| fence-agents-0:4.2.1-89.el8_6.12 | cpe:/a:redhat:rhel_tus:8.6 | RHSA-2024:4404 | 2024-07-09T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | |||
| fence-agents-0:4.2.1-89.el8_6.12 | cpe:/a:redhat:rhel_e4s:8.6 | RHSA-2024:4404 | 2024-07-09T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Extended Update Support | |||
| fence-agents-0:4.2.1-112.el8_8.6 | cpe:/a:redhat:rhel_eus:8.8 | RHSA-2024:3811 | 2024-06-11T00:00:00Z |
| Red Hat Enterprise Linux 9 | |||
| fence-agents-0:4.10.0-62.el9_4.3 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2024:3820 | 2024-06-11T00:00:00Z |
| python-jinja2-0:2.11.3-6.el9 | cpe:/a:redhat:enterprise_linux:9 | RHSA-2024:9150 | 2024-11-12T00:00:00Z |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | |||
| fence-agents-0:4.10.0-20.el9_0.13 | cpe:/a:redhat:rhel_e4s:9.0 | RHSA-2024:4414 | 2024-07-09T00:00:00Z |
| Red Hat Enterprise Linux 9.2 Extended Update Support | |||
| fence-agents-0:4.10.0-43.el9_2.6 | cpe:/a:redhat:rhel_eus:9.2 | RHSA-2024:4427 | 2024-07-09T00:00:00Z |
| Red Hat OpenShift Container Platform 4.15 | |||
| python-jinja2-0:3.0.1-3.el9.1 | cpe:/a:redhat:openshift_ironic:4.15::el9 | RHSA-2024:4958 | 2024-08-07T00:00:00Z |
| Red Hat OpenShift Container Platform 4.16 | |||
| python-jinja2-0:3.0.1-3.el9.1 | cpe:/a:redhat:openshift_ironic:4.16::el9 | RHSA-2024:4616 | 2024-07-24T00:00:00Z |
| Red Hat Satellite 6.15 for RHEL 8 | |||
| python-jinja2-0:3.1.4-1.el8pc | cpe:/a:redhat:satellite:6.15::el8 | RHSA-2024:5662 | 2024-08-20T00:00:00Z |
| python-jinja2-0:3.1.4-1.el8pc | cpe:/a:redhat:satellite_capsule:6.15::el8 | RHSA-2024:5662 | 2024-08-20T00:00:00Z |
| RHUI 4 for RHEL 8 | |||
| python-jinja2-0:3.1.4-1.el8ui | cpe:/a:redhat:rhui:4::el8 | RHSA-2025:1335 | 2025-02-12T00:00:00Z |
No data available yet.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-3988-1 | jinja2 security update |
EUVD |
EUVD-2024-1641 | 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. |
Github GHSA |
GHSA-h75v-3vvj-5mfj | Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter |
Ubuntu USN |
USN-6787-1 | Jinja2 vulnerability |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.979% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Fedoraproject
Fedoraproject fedora Palletsprojects Palletsprojects jinja |
|
| CPEs | cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:* cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* cpe:2.3:o:fedoraproject:fedora:40:*:*:*:*:*:*:* |
|
| Vendors & Products |
Fedoraproject
Fedoraproject fedora Palletsprojects Palletsprojects jinja |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | ||
| Vendors & Products |
Palletsprojects
Palletsprojects jinja |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
epss
|
epss
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat rhui
|
|
| CPEs | cpe:/a:redhat:rhui:4::el8 | |
| Vendors & Products |
Redhat rhui
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Palletsprojects
Palletsprojects jinja |
|
| CPEs | cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Palletsprojects
Palletsprojects jinja |
|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift_ironic:4.12::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift_ironic:4.13::el9 |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat satellite
Redhat satellite Capsule |
|
| CPEs | cpe:/a:redhat:satellite:6.15::el8 cpe:/a:redhat:satellite_capsule:6.15::el8 |
|
| Vendors & Products |
Redhat satellite
Redhat satellite Capsule |
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:/a:redhat:openshift_ironic:4.15::el9 |