CVE catalog

CVE-2024-22195

jinja2: CVE-2024-22195

[CVE catalog]

Severity
Medium · CVSS 5.4CVSS: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.

DistributionPackageReleaseVersionStatus
Debianjinja2sid3.1.6-4fixed
Debianjinja2forky3.1.6-4fixed
Debianjinja2trixie3.1.6-1fixed
Debianjinja2bookworm3.1.2-1+deb12u3fixed
Alpinepy3-jinja23.173.1.4-r0fixed
Alpinepy3-jinja23.183.1.4-r0fixed
Alpinepy3-jinja23.193.1.4-r0fixed
Alpinepy3-jinja23.203.1.3-r0fixed
Alpinepy3-jinja23.213.1.3-r0fixed
Alpinepy3-jinja23.223.1.3-r0fixed
Alpinepy3-jinja23.233.1.3-r0fixed
Alpinepy3-jinja23.243.1.3-r0fixed
Susepython-Jinja2linux micro 6.03.1.2-6.1fixed
Opensusepython-Jinja2tumbleweed3.1.3-1.1fixed
Susepython-Jinja2linux enterprise micro 5.52.10.1-150000.3.13.1fixed
Ubuntujinja2pro2.9.6-1vulnerable
Ubuntujinja2pro2.10-1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1vulnerable
Ubuntujinja2pro2.10-1ubuntu0.18.04.1+esm1fixed
Ubuntujinja220.042.10-2ubuntu1vulnerable
Ubuntujinja220.042.10-2ubuntu2vulnerable
Ubuntujinja220.042.10.1-1ubuntu1vulnerable
Ubuntujinja220.042.10.1-2vulnerable
Ubuntujinja220.042.10.1-2ubuntu0.2fixed
Ubuntujinja222.042.11.3-1vulnerable
Ubuntujinja222.043.0.1-2vulnerable
Ubuntujinja222.043.0.3-1vulnerable
Ubuntujinja222.043.0.3-1ubuntu0.1fixed
Ubuntujinja224.043.1.2-1vulnerable
Ubuntujinja224.043.1.2-1ubuntu1fixed
Susepython-Jinja2linux enterprise micro 5.32.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise micro 5.42.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise micro 5.52.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise module for basesystem 15 sp52.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise module for basesystem 15 sp62.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise micro 5.12.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise micro 5.22.10.1-150000.3.13.1fixed
Opensusepython-Jinja2leap micro 5.32.10.1-150000.3.13.1fixed
Opensusepython-Jinja2leap micro 5.42.10.1-150000.3.13.1fixed
Opensusepython-Jinja2leap 15.52.10.1-150000.3.13.1fixed
Susepython-Jinja2linux enterprise module for python 3 15 sp53.1.2-150400.12.6.1fixed
Susepython-Jinja2linux enterprise module for python 3 15 sp63.1.2-150400.12.6.1fixed
Opensusepython-Jinja2leap 15.53.1.2-150400.12.6.1fixed
Opensusepython-Jinja2leap 15.63.1.2-150400.12.6.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjinja2sourcesid3.1.3-1not yet assignedNot reported[1060748]
Debianjinja2sourceforky3.1.3-1not yet assignedNot reported[1060748]
Debianjinja2sourcetrixie3.1.3-1not yet assignedNot reported[1060748]
Debianjinja2sourcebookworm3.1.2-1+deb12u1not yet assignedNot reported[1060748]
Alpinepy3-jinja2apk3.173.1.4-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.183.1.4-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.193.1.4-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.203.1.3-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.213.1.3-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.223.1.3-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.233.1.3-r0Not reportedALPINE-CVE-2024-22195Not reported
Alpinepy3-jinja2apk3.243.1.3-r0Not reportedALPINE-CVE-2024-22195Not reported
Susepython-Jinja2rpmlinux micro 6.03.1.2-6.1Not reportedSUSE-SU-2025:20035-1Not reported
Opensusepython-Jinja2rpmtumbleweed3.1.3-1.1Not reportedOPENSUSE-SU-2024:13581-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.52.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-2Not reported
Ubuntujinja2debpro2.10-1ubuntu0.18.04.1+esm1Not reportedUBUNTU-CVE-2024-22195Not reported
Ubuntujinja2deb20.042.10.1-2ubuntu0.2Not reportedUBUNTU-CVE-2024-22195Not reported
Ubuntujinja2deb22.043.0.3-1ubuntu0.1Not reportedUBUNTU-CVE-2024-22195Not reported
Ubuntujinja2deb24.043.1.2-1ubuntu1Not reportedUBUNTU-CVE-2024-22195Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.32.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.42.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.52.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise module for basesystem 15 sp52.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise module for basesystem 15 sp62.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.12.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise micro 5.22.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Opensusepython-Jinja2rpmleap micro 5.32.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Opensusepython-Jinja2rpmleap micro 5.42.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Opensusepython-Jinja2rpmleap 15.52.10.1-150000.3.13.1Not reportedSUSE-SU-2024:1863-1Not reported
Susepython-Jinja2rpmlinux enterprise module for python 3 15 sp53.1.2-150400.12.6.1Not reportedSUSE-SU-2024:1864-1Not reported
Susepython-Jinja2rpmlinux enterprise module for python 3 15 sp63.1.2-150400.12.6.1Not reportedSUSE-SU-2024:1864-1Not reported
Opensusepython-Jinja2rpmleap 15.53.1.2-150400.12.6.1Not reportedSUSE-SU-2024:1864-1Not reported
Opensusepython-Jinja2rpmleap 15.63.1.2-150400.12.6.1Not reportedSUSE-SU-2024:1864-1Not reported

[Debian bug #1060748]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References