CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Palletsprojects

CVE-2024-22195
Palletsprojects Jinja vulnerability

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.

Affected products

Jinja. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Palletsprojects Jinja runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Palletsprojects products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.