CWE
79
EPSS
0.098%
Advisory Published
CVE Published
Advisory Published
Advisory Published
Updated

CVE-2024-22195: Jinja vulnerable to Cross-Site Scripting (XSS)

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

Affected SoftwareAffected VersionHow to fix
pip/jinja2<3.1.3
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+
redhat/jinja2<3.1.3
3.1.3
F5 Traffix Systems Signaling Delivery Controller=5.1.0
5.2.0
Jinja<3.1.3
IBM QRadar Security Information and Event Manager<=7.5 - 7.5.0 UP9 IF03
IBM Security QRadar Incident Forensics<=7.5 - 7.5.0 UP9 IF03

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-22195?

    The severity of CVE-2024-22195 is categorized as high due to the potential for Cross-Site Scripting (XSS) attacks.

  • How do I fix CVE-2024-22195?

    To fix CVE-2024-22195, update your Jinja2 version to at least 3.1.3 or the specific patched versions for your operating system.

  • What vulnerability does CVE-2024-22195 exploit?

    CVE-2024-22195 exploits a flaw in the Jinja templating engine that allows the injection of arbitrary HTML attributes leading to XSS.

  • Which software is affected by CVE-2024-22195?

    CVE-2024-22195 affects Jinja2 versions below 3.1.3 and various products including IBM QRadar SIEM and F5 Traffix SDC.

  • What is the potential impact of CVE-2024-22195 on web applications?

    The potential impact of CVE-2024-22195 on web applications includes the ability for attackers to inject malicious scripts into web pages viewed by users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203