← Back to issue list

build(deps): update dependency jinja2 to v3.1.5 [security] (main)

View original Github issue

Metadata

Project
charmcraft
Number
#2064
Type
pull request
State
merged
Author
renovate[bot]
Labels
Created
Updated
Closed

Current evaluation

Merged an automated dependency update upgrading jinja2 from 3.1.4 to 3.1.5 to patch CVE-2024-56326 and CVE-2024-56201. The change passed CI, received reviewer approval, and was auto-merged to main.

Suggested action:

No scores available.

Issue body

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jinja2](https://redirect.github.com/pallets/jinja) ([changelog](https://jinja.palletsprojects.com/changes/)) | `==3.1.4` -> `==3.1.5` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/jinja2/3.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/jinja2/3.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/jinja2/3.1.4/3.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/jinja2/3.1.4/3.1.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | ### GitHub Vulnerability Alerts #### [CVE-2024-56326](https://redirect.github.com/pallets/jinja/security/advisories/GHSA-q2x7-8rv6-6q7h) 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. #### [CVE-2024-56201](https://redirect.github.com/pallets/jinja/security/advisories/GHSA-gmj6-6f8f-6699) 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. --- ### Release Notes <details> <summary>pallets/jinja (jinja2)</summary> ### [`v3.1.5`](https://redirect.github.com/pallets/jinja/blob/HEAD/CHANGES.rst#Version-315) [Compare Source](https://redirect.github.com/pallets/jinja/compare/3.1.4...3.1.5) Unreleased - Calling sync `render` for an async template uses `asyncio.run`. :pr:`1952` - Avoid unclosed `auto_aiter` warnings. :pr:`1960` - Return an `aclose`-able `AsyncGenerator` from `Template.generate_async`. :pr:`1960` - Avoid leaving `root_render_func()` unclosed in `Template.generate_async`. :pr:`1960` - Avoid leaving async generators unclosed in blocks, includes and extends. :pr:`1960` </details> --- ### Configuration 📅 **Schedule**: Branch creation - "" in timezone Etc/UTC, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/canonical/charmcraft). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged an automated dependency update upgrading jinja2 from 3.1.4 to 3.1.5 to patch CVE-2024-56326 and CVE-2024-56201. The change passed CI, received reviewer approval, and was auto-merged to main.
qwen3.6-35b-a3b-mtp-q6 Auto-merged to main. Updated jinja2 from 3.1.4 to 3.1.5 to resolve CVE-2024-56326 and CVE-2024-56201, which allow arbitrary code execution via untrusted templates. Handled by Renovate bot.
qwen3.6-35b-a3b-mtp-q6 Automatically merged into main, upgrading jinja2 from v3.1.4 to v3.1.5 to patch CVE-2024-56326 and CVE-2024-56201. The security update was applied via Renovate bot with automerge enabled.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5190 build(deps): update dependency jinja2 to v3.1.5 [security] (main) snapcraft merged Merged automated dependency update upgrading Jinja2 from 3.1.4 to 3.1.5 to patch CVE-2024-56326 and CVE-2024-56201. The change passed CI, received two approvals, and was auto-merged into main by Renovate bot.
94%
#5306 build(deps): update dependency jinja2 to v3.1.6 [security] (main) - autoclosed snapcraft closed Renovate PR updating Jinja2 to v3.1.6 to fix CVE-2025-27516 passed CI and received approval but was autoclosed without merging, likely superseded by a newer dependency update.
90%
#2210 build(deps): update dependency jinja2 to v3.1.6 [security] (hotfix/3.4) - autoclosed charmcraft closed Dependency update PR for jinja2 v3.1.6 addressing CVE-2025-27516 was autoclosed without merging. No reviews or CI checks ran.
89%
#5305 build(deps): update jinja to 3.1.6 snapcraft merged Merged update to jinja 3.1.6 to resolve security vulnerability GHSA-cpwx-vrp4-4pq7. Approved by two reviewers, passed CI, and integrated without comments.
88%
#106 build(deps): bump jinja2 from 3.1.5 to 3.1.6 imagecraft merged Merged a dependency update bumping jinja2 from 3.1.5 to 3.1.6 to patch security vulnerability GHSA-cpwx-vrp4-4pq7. Approved by two reviewers, passed CI, and merged after coordinating with a related pull request.
88%
#1038 build(deps): update jinja2 to 3.1.6 craft-parts merged Merged to update jinja2 to 3.1.6, resolving CVE-2025-27516 sandbox breakout vulnerability. Approved by two reviewers, passed CI, and applied with a minimal five-line change across two files.
87%
#2208 build(deps): update dependency jinja2 to v3.1.6 [security] (hotfix/2.7) - autoclosed charmcraft closed Automatically closed without merging. The dependency update to jinja2 v3.1.6 for CVE-2025-27516 was superseded or abandoned before review.
87%
#5307 build(deps): update dependency jinja2 to v3.1.6 [security] (hotfix/7.5) - autoclosed snapcraft closed The Jinja2 v3.1.6 security update was autoclosed without merging. The pull request received no reviews or CI checks and was automatically closed, leaving the dependency update unapplied.
86%
#5309 build(deps): update dependency jinja2 to v3.1.6 [security] (hotfix/8.7) - autoclosed snapcraft closed The Jinja2 v3.1.6 security update was autoclosed without review, CI checks, or merge. Renovate automatically closed the branch.
86%
#5308 build(deps): update dependency jinja2 to v3.1.6 [security] (hotfix/8.6) snapcraft closed Automatically merged via Renovate to update Jinja2 to v3.1.6, resolving CVE-2025-27516. Applied to hotfix/8.6 without manual review.
85%