Ubuntu Security Notice
USN-6787-1
jinja2 vulnerability
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | jinja2 | All versions before 2.7.2-2ubuntu0.1~esm3 (fixed in 2.7.2-2ubuntu0.1~esm3) |
| Ubuntu:Pro:16.04:LTS | jinja2 | All versions before 2.8-1ubuntu0.1+esm3 (fixed in 2.8-1ubuntu0.1+esm3) |
| Ubuntu:Pro:18.04:LTS | jinja2 | All versions before 2.10-1ubuntu0.18.04.1+esm2 (fixed in 2.10-1ubuntu0.18.04.1+esm2) |
| Ubuntu:20.04:LTS | jinja2 | All versions before 2.10.1-2ubuntu0.3 (fixed in 2.10.1-2ubuntu0.3) |
| Ubuntu:22.04:LTS | jinja2 | All versions before 3.0.3-1ubuntu0.2 (fixed in 3.0.3-1ubuntu0.2) |
| Ubuntu:24.04:LTS | jinja2 | All versions before 3.1.2-1ubuntu1.1 (fixed in 3.1.2-1ubuntu1.1) |