
CVE catalog
CVE-2024-22195
jinja2: CVE-2024-22195
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.89% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | jinja2 | sid | 3.1.6-4 | fixed |
| Debian | jinja2 | forky | 3.1.6-4 | fixed |
| Debian | jinja2 | trixie | 3.1.6-1 | fixed |
| Debian | jinja2 | bookworm | 3.1.2-1+deb12u3 | fixed |
| Alpine | py3-jinja2 | 3.17 | 3.1.4-r0 | fixed |
| Alpine | py3-jinja2 | 3.18 | 3.1.4-r0 | fixed |
| Alpine | py3-jinja2 | 3.19 | 3.1.4-r0 | fixed |
| Alpine | py3-jinja2 | 3.20 | 3.1.3-r0 | fixed |
| Alpine | py3-jinja2 | 3.21 | 3.1.3-r0 | fixed |
| Alpine | py3-jinja2 | 3.22 | 3.1.3-r0 | fixed |
| Alpine | py3-jinja2 | 3.23 | 3.1.3-r0 | fixed |
| Alpine | py3-jinja2 | 3.24 | 3.1.3-r0 | fixed |
| Suse | python-Jinja2 | linux micro 6.0 | 3.1.2-6.1 | fixed |
| Opensuse | python-Jinja2 | tumbleweed | 3.1.3-1.1 | fixed |
| Suse | python-Jinja2 | linux enterprise micro 5.5 | 2.10.1-150000.3.13.1 | fixed |
| Ubuntu | jinja2 | pro | 2.9.6-1 | vulnerable |
| Ubuntu | jinja2 | pro | 2.10-1 | vulnerable |
| Ubuntu | jinja2 | pro | 2.10-1ubuntu0.18.04.1 | vulnerable |
| Ubuntu | jinja2 | pro | 2.10-1ubuntu0.18.04.1+esm1 | fixed |
| Ubuntu | jinja2 | 20.04 | 2.10-2ubuntu1 | vulnerable |
| Ubuntu | jinja2 | 20.04 | 2.10-2ubuntu2 | vulnerable |
| Ubuntu | jinja2 | 20.04 | 2.10.1-1ubuntu1 | vulnerable |
| Ubuntu | jinja2 | 20.04 | 2.10.1-2 | vulnerable |
| Ubuntu | jinja2 | 20.04 | 2.10.1-2ubuntu0.2 | fixed |
| Ubuntu | jinja2 | 22.04 | 2.11.3-1 | vulnerable |
| Ubuntu | jinja2 | 22.04 | 3.0.1-2 | vulnerable |
| Ubuntu | jinja2 | 22.04 | 3.0.3-1 | vulnerable |
| Ubuntu | jinja2 | 22.04 | 3.0.3-1ubuntu0.1 | fixed |
| Ubuntu | jinja2 | 24.04 | 3.1.2-1 | vulnerable |
| Ubuntu | jinja2 | 24.04 | 3.1.2-1ubuntu1 | fixed |
| Suse | python-Jinja2 | linux enterprise micro 5.3 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise micro 5.4 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise micro 5.5 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise module for basesystem 15 sp5 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise module for basesystem 15 sp6 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise micro 5.1 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise micro 5.2 | 2.10.1-150000.3.13.1 | fixed |
| Opensuse | python-Jinja2 | leap micro 5.3 | 2.10.1-150000.3.13.1 | fixed |
| Opensuse | python-Jinja2 | leap micro 5.4 | 2.10.1-150000.3.13.1 | fixed |
| Opensuse | python-Jinja2 | leap 15.5 | 2.10.1-150000.3.13.1 | fixed |
| Suse | python-Jinja2 | linux enterprise module for python 3 15 sp5 | 3.1.2-150400.12.6.1 | fixed |
| Suse | python-Jinja2 | linux enterprise module for python 3 15 sp6 | 3.1.2-150400.12.6.1 | fixed |
| Opensuse | python-Jinja2 | leap 15.5 | 3.1.2-150400.12.6.1 | fixed |
| Opensuse | python-Jinja2 | leap 15.6 | 3.1.2-150400.12.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | jinja2 | source | sid | 3.1.3-1 | not yet assigned | Not reported | [1060748] |
| Debian | jinja2 | source | forky | 3.1.3-1 | not yet assigned | Not reported | [1060748] |
| Debian | jinja2 | source | trixie | 3.1.3-1 | not yet assigned | Not reported | [1060748] |
| Debian | jinja2 | source | bookworm | 3.1.2-1+deb12u1 | not yet assigned | Not reported | [1060748] |
| Alpine | py3-jinja2 | apk | 3.17 | 3.1.4-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.18 | 3.1.4-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.19 | 3.1.4-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.20 | 3.1.3-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.21 | 3.1.3-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.22 | 3.1.3-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.23 | 3.1.3-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Alpine | py3-jinja2 | apk | 3.24 | 3.1.3-r0 | Not reported | ALPINE-CVE-2024-22195 | Not reported |
| Suse | python-Jinja2 | rpm | linux micro 6.0 | 3.1.2-6.1 | Not reported | SUSE-SU-2025:20035-1 | Not reported |
| Opensuse | python-Jinja2 | rpm | tumbleweed | 3.1.3-1.1 | Not reported | OPENSUSE-SU-2024:13581-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise micro 5.5 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-2 | Not reported |
| Ubuntu | jinja2 | deb | pro | 2.10-1ubuntu0.18.04.1+esm1 | Not reported | UBUNTU-CVE-2024-22195 | Not reported |
| Ubuntu | jinja2 | deb | 20.04 | 2.10.1-2ubuntu0.2 | Not reported | UBUNTU-CVE-2024-22195 | Not reported |
| Ubuntu | jinja2 | deb | 22.04 | 3.0.3-1ubuntu0.1 | Not reported | UBUNTU-CVE-2024-22195 | Not reported |
| Ubuntu | jinja2 | deb | 24.04 | 3.1.2-1ubuntu1 | Not reported | UBUNTU-CVE-2024-22195 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise micro 5.3 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise micro 5.4 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise micro 5.5 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise module for basesystem 15 sp5 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise module for basesystem 15 sp6 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise micro 5.1 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise micro 5.2 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Opensuse | python-Jinja2 | rpm | leap micro 5.3 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Opensuse | python-Jinja2 | rpm | leap micro 5.4 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Opensuse | python-Jinja2 | rpm | leap 15.5 | 2.10.1-150000.3.13.1 | Not reported | SUSE-SU-2024:1863-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise module for python 3 15 sp5 | 3.1.2-150400.12.6.1 | Not reported | SUSE-SU-2024:1864-1 | Not reported |
| Suse | python-Jinja2 | rpm | linux enterprise module for python 3 15 sp6 | 3.1.2-150400.12.6.1 | Not reported | SUSE-SU-2024:1864-1 | Not reported |
| Opensuse | python-Jinja2 | rpm | leap 15.5 | 3.1.2-150400.12.6.1 | Not reported | SUSE-SU-2024:1864-1 | Not reported |
| Opensuse | python-Jinja2 | rpm | leap 15.6 | 3.1.2-150400.12.6.1 | Not reported | SUSE-SU-2024:1864-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_2968.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2024-22195]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-22195]
- [https://osv.dev/vulnerability/DLA-3715-1]
- [https://osv.dev/vulnerability/DLA-3988-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:1863-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:1863-2]
- [https://osv.dev/vulnerability/SUSE-SU-2024:1864-1]
- [https://osv.dev/vulnerability/SUSE-SU-2025:20035-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-22195]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13581-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-22195]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-22195.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1228.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]