Jinja2 is vulnerable to Cross-site Scripting (XSS)
50
Medium Risk
The xmlattr filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, /, >, or =, as each would be interpreted as starting a separate attribute. If an application accepts keys (instead of just values) as user input and renders them in pages visible to other users, an attacker could exploit this to inject additional attributes and perform Cross-site Scripting (XSS).
You are affected if you are using a version that falls within the vulnerable range.
Jinja2 is vulnerable to Cross-site Scripting (XSS) in versions 2.0 - 3.0.2.
Upgrade the Jinja2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant