First published: Thu Jan 11 2024(Updated: )
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja `xmlattr` filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
pip/jinja2 | <3.1.3 | 3.1.3 |
Palletsprojects Jinja | <3.1.3 | |
debian/jinja2 | <=2.10-2<=2.11.3-1<=3.1.2-1 | 2.10-2+deb10u1 3.1.3-1 |
ubuntu/jinja2 | <2.10-1ubuntu0.18.04.1+ | 2.10-1ubuntu0.18.04.1+ |
ubuntu/jinja2 | <2.10.1-2ubuntu0.2 | 2.10.1-2ubuntu0.2 |
ubuntu/jinja2 | <3.0.3-1ubuntu0.1 | 3.0.3-1ubuntu0.1 |
ubuntu/jinja2 | <3.1.2-1ubuntu0.23.10.1 | 3.1.2-1ubuntu0.23.10.1 |
ubuntu/jinja2 | <3.1.2-1ubuntu1 | 3.1.2-1ubuntu1 |
ubuntu/jinja2 | <2.7.2-2ubuntu0.1~ | 2.7.2-2ubuntu0.1~ |
ubuntu/jinja2 | <2.8-1ubuntu0.1+ | 2.8-1ubuntu0.1+ |
IBM IBM® Db2® on Cloud Pak for Data and Db2 Warehouse on Cloud Pak for Data | <=v3.5 through refresh 10v4.0 through refresh 9v4.5 through refresh 3v4.6 through refresh 6v4.7 through refresh 4v4.8 through refresh 4 | |
redhat/jinja2 | <3.1.3 | 3.1.3 |
F5 Traffix SDC | =5.1.0 | 5.2.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.