Approved changes feed: RSS · Atom

cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorPalletsprojects (53744b77-ee51-53ab-bf41-21b127ba0bd8)
ProductJinja (111f7679-ec89-5379-82c4-b18a0e41f48f)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/pallets/jinja purl2cpe 2026-06-01 10:13:14.819807
pkg:pypi/jinja purl2cpe 2026-06-01 10:13:14.819809
pkg:sourceforge/jinja.mirror purl2cpe 2026-06-01 10:13:14.819811

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2025-27516 vulnerable 2026-06-08 07:14:55.261725 Jinja sandbox breakout through attr filter selecting format method
Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to use the |attr filter to get a reference to a string's plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment's attribute lookup. This vulnerability is fixed in 3.1.6.
Published: 2025-03-05T20:40:06.568Z
Updated: 2026-02-26T19:09:45.280Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-56326 vulnerable 2026-06-08 06:54:17.722655 Jinja has a sandbox breakout through indirect reference to format method
Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja's sandbox does catch calls to str.format and ensures they don't escape the sandbox. However, it's possible to store a reference to a malicious string's format method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5.
Published: 2024-12-23T15:43:49.400Z
Updated: 2025-11-03T19:32:16.045Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-56201 vulnerable 2026-06-08 06:54:17.533286 Jinja has a sandbox breakout through malicious filenames
Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates where the template author can also choose the template filename. This vulnerability is fixed in 3.1.5.
Published: 2024-12-23T15:37:36.110Z
Updated: 2025-02-18T21:47:42.763Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-34064 vulnerable 2026-06-08 06:37:32.595082 Jinja vulnerable to HTML attribute injection when passing user input as keys to xmlattr filter
MEDIUM (5.4)
Jinja is an extensible templating engine. The `xmlattr` filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other users see as well, an attacker could use this to inject other attributes and perform XSS. The fix for CVE-2024-22195 only addressed spaces but not other characters. Accepting keys as user input is now explicitly considered an unintended use case of the `xmlattr` filter, and code that does so without otherwise validating the input should be flagged as insecure, regardless of Jinja version. Accepting _values_ as user input continues to be safe. This vulnerability is fixed in 3.1.4.
Published: 2024-05-06T14:41:39.912Z
Updated: 2025-11-03T21:54:48.796Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-22195 vulnerable 2026-06-08 06:29:34.084507 Jinja vulnerable to Cross-Site Scripting (XSS)
MEDIUM (5.4)
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.
Published: 2024-01-11T02:25:44.239Z
Updated: 2025-11-03T21:53:45.551Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2020-28493 vulnerable 2026-06-08 05:23:56.170888 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2019-10906 vulnerable 2026-06-08 05:12:25.497832 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data
CVE:CVE-2016-10745 vulnerable 2026-06-08 05:07:25.669597 db.gcve.eu details were skipped to keep the page responsive. Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.