ADVISORIES

Ubuntu Security Notice

USN-6599-1

jinja2 vulnerabilities

Details

Yeting Li discovered that Jinja incorrectly handled certain regex. An attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2020-28493)

It was discovered that Jinja incorrectly handled certain HTML passed with xmlatter filter. An attacker could inject arbitrary HTML attributes keys and values potentially leading to XSS. (CVE-2024-22195)

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSjinja2
All versions before 2.7.2-2ubuntu0.1~esm2 (fixed in 2.7.2-2ubuntu0.1~esm2)
Ubuntu:Pro:16.04:LTSjinja2
All versions before 2.8-1ubuntu0.1+esm2 (fixed in 2.8-1ubuntu0.1+esm2)
Ubuntu:Pro:18.04:LTSjinja2
All versions before 2.10-1ubuntu0.18.04.1+esm1 (fixed in 2.10-1ubuntu0.18.04.1+esm1)
Ubuntu:20.04:LTSjinja2
All versions before 2.10.1-2ubuntu0.2 (fixed in 2.10.1-2ubuntu0.2)
Ubuntu:22.04:LTSjinja2
All versions before 3.0.3-1ubuntu0.1 (fixed in 3.0.3-1ubuntu0.1)

References