ELA-1048-1 jinja2 security update

cross-site scripting

2024-02-25
Packagejinja2
Version2.7.3-1+deb8u1 (jessie), 2.8-1+deb9u1 (stretch)
Related CVEs CVE-2024-22195


It was discovered that there was an injection attack in jinja2, a popular templating engine used in various Python applications.

It was possible to inject arbitrary HTML attributes into rendered HTML via the “xmlattr” filter, potentially leading to a Cross-Site Scripting (XSS) attack. It may also have been possible to bypass attribute validation checks if they were blacklist-based.



For Debian 8 jessie, these problems have been fixed in version 2.7.3-1+deb8u1.

For Debian 9 stretch, these problems have been fixed in version 2.8-1+deb9u1.

We recommend that you upgrade your jinja2 packages.

Further information about Extended LTS security advisories can be found in the dedicated section of our website.