CVE-2024-22195

Publication date 11 January 2024

Last updated 17 July 2025


Ubuntu priority

Cvss 3 Severity Score

5.4 · Medium

Score breakdown

Description

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.

Status

Package Ubuntu Release Status
jinja2 25.04 plucky
Fixed in 3.1.2-1ubuntu1
24.10 oracular
Fixed in 3.1.2-1ubuntu1
24.04 LTS noble
Fixed in 3.1.2-1ubuntu1
23.10 mantic
Fixed in 3.1.2-1ubuntu0.23.10.1
23.04 lunar Ignored end of life
22.04 LTS jammy
Fixed in 3.0.3-1ubuntu0.1
20.04 LTS focal
Fixed in 2.10.1-2ubuntu0.2
18.04 LTS bionic
Fixed in 2.10-1ubuntu0.18.04.1+esm1
16.04 LTS xenial
Fixed in 2.8-1ubuntu0.1+esm2
14.04 LTS trusty
Fixed in 2.7.2-2ubuntu0.1~esm2

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
jinja2

Severity score breakdown

CVSS version: CVSS v3.0

Base score 5.4 · Medium

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


Access our resources on patching vulnerabilities