Advisory

UBUNTU-CVE-2024-22195

Also known as: CVE-2024-22195

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.4, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Dates

Published
2024-01-11 03:15 UTC
Modified
2026-02-04 03:38 UTC

Affected packages and fixes

jinja2

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.10.1-2ubuntu0.2 (ecosystem)

Fixed versions

2.10.1-2ubuntu0.2

Fix

  • Fixed version 2.10.1-2ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jinja2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.0.3-1ubuntu0.1 (ecosystem)

Fixed versions

3.0.3-1ubuntu0.1

Fix

  • Fixed version 3.0.3-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jinja2

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.1.2-1ubuntu1 (ecosystem)

Fixed versions

3.1.2-1ubuntu1

Fix

  • Fixed version 3.1.2-1ubuntu1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences