[USN-6787-1] Jinja2 vulnerability

Nick Galanis nick.galanis at canonical.com
Wed May 29 09:22:01 UTC 2024


==========================================================================
Ubuntu Security Notice USN-6787-1
May 28, 2024

jinja2 vulnerability
==========================================================================

A security issue affects these releases of Ubuntu and its derivatives:

- Ubuntu 24.04 LTS
- Ubuntu 23.10
- Ubuntu 22.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS
- Ubuntu 14.04 LTS

Summary:

Jinja2 could allow cross-site scripting (XSS) attacks.

Software Description:
- jinja2: small but fast and easy to use stand-alone template engine

Details:

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:

The problem can be corrected by updating your system to the following
package versions:

Ubuntu 24.04 LTS
    python3-jinja2                  3.1.2-1ubuntu1.1

Ubuntu 23.10
    python3-jinja2                  3.1.2-1ubuntu0.23.10.2

Ubuntu 22.04 LTS
    python3-jinja2                  3.0.3-1ubuntu0.2

Ubuntu 20.04 LTS
    python-jinja2                   2.10.1-2ubuntu0.3
    python3-jinja2                  2.10.1-2ubuntu0.3

Ubuntu 18.04 LTS
    python-jinja2                   2.10-1ubuntu0.18.04.1+esm2
                                    Available with Ubuntu Pro
    python3-jinja2                  2.10-1ubuntu0.18.04.1+esm2
                                    Available with Ubuntu Pro

Ubuntu 16.04 LTS
    python-jinja2                   2.8-1ubuntu0.1+esm3
                                    Available with Ubuntu Pro
    python3-jinja2                  2.8-1ubuntu0.1+esm3
                                    Available with Ubuntu Pro

Ubuntu 14.04 LTS
    python-jinja2                   2.7.2-2ubuntu0.1~esm3
                                    Available with Ubuntu Pro
    python3-jinja2                  2.7.2-2ubuntu0.1~esm3
                                    Available with Ubuntu Pro

In general, a standard system update will make all the necessary changes.

References:
    https://ubuntu.com/security/notices/USN-6787-1
    CVE-2024-34064

Package Information:
    https://launchpad.net/ubuntu/+source/jinja2/3.1.2-1ubuntu1.1
    https://launchpad.net/ubuntu/+source/jinja2/3.1.2-1ubuntu0.23.10.2
    https://launchpad.net/ubuntu/+source/jinja2/3.0.3-1ubuntu0.2
    https://launchpad.net/ubuntu/+source/jinja2/2.10.1-2ubuntu0.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-security-announce/attachments/20240529/d8893144/attachment.sig>


More information about the ubuntu-security-announce mailing list