USN-6787-1

Type: Security
Severity: Medium
Published: 2024-05-28
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 24.04 LTS (Noble Numbat)
Ubuntu 22.04 LTS (Jammy Jellyfish)

It was discovered that Jinja2 incorrectly handled certain HTML attributes that were accepted by the xmlattr filter. An attacker could use this issue to inject arbitrary HTML attribute keys and values to potentially execute a cross-site scripting (XSS) attack. Update Instructions: Run `sudo pro fix USN-6787-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: python-jinja2 - 2.10.1-2ubuntu0.3 python-jinja2-doc - 2.10.1-2ubuntu0.3 python3-jinja2 - 2.10.1-2ubuntu0.3 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T03:50:42.912Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T03:50:42.912Z UTC. Last updated 2025-11-26T08:19:49.626Z UTC.

Upstream Advisory

Affected Packages

  • python-jinja2 2.10.1-2ubuntu0.3-2.10.1-2ubuntu0.3

  • python-jinja2-doc 2.10.1-2ubuntu0.3-2.10.1-2ubuntu0.3

  • python3-jinja2 2.10.1-2ubuntu0.3-2.10.1-2ubuntu0.3

  • python-jinja2-doc 3.1.2-1ubuntu1.1-3.1.2-1ubuntu1.1

  • python3-jinja2 3.1.2-1ubuntu1.1-3.1.2-1ubuntu1.1

  • python-jinja2-doc 3.0.3-1ubuntu0.2-3.0.3-1ubuntu0.2

  • python3-jinja2 3.0.3-1ubuntu0.2-3.0.3-1ubuntu0.2

Interested in being alerted when there are new versions of python-jinja2 and the other packages? Set up an alert.
USN-6787-1: Jinja2 vulnerability | Package Alert