Advisory

DEBIAN-CVE-2024-34064

Also known as: CVE-2024-34064

Summary

The record has no summary.

Details

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.

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-05-06 15:15 UTC
Modified
2026-11-02 12:02 UTC

Affected packages and fixes

jinja2

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 3.1.2-1+deb12u1 (ecosystem)

Fixed versions

3.1.2-1+deb12u1

Fix

  • Fixed version 3.1.2-1+deb12u1
    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) · Debian 13

Affected

  • introduced 0, fixed 3.1.3-1.1 (ecosystem)

Fixed versions

3.1.3-1.1

Fix

  • Fixed version 3.1.3-1.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) · Debian 14

Affected

  • introduced 0, fixed 3.1.3-1.1 (ecosystem)

Fixed versions

3.1.3-1.1

Fix

  • Fixed version 3.1.3-1.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.

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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences