← Back to issue list

build(deps): bump jinja2 from 3.1.5 to 3.1.6 in /docs/.sphinx

View original Github issue

Metadata

Project
snapcraft
Number
#5312
Type
pull request
State
merged
Author
dependabot[bot]
Labels
—
Created
Updated
Closed

Current evaluation

Dependabot PR merged as commit 8bc04497, bumping Jinja2 3.1.5 to 3.1.6 in the Sphinx docs requirements to fix sandbox bypass GHSA-cpwx-vrp4-4pq7.

Resolution: closed resolved

Reason: The PR was merged into the default branch as commit 8bc04497 ("build(deps): bump jinja2 3.1.6 (#5312)", +1/-1 in docs/.sphinx/requirements.txt) and approved by two reviewers. The current uv.lock pins jinja2 3.1.6, confirming the security fix is in effect.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.5 to 3.1.6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pallets/jinja/releases">jinja2's releases</a>.</em></p> <blockquote> <h2>3.1.6</h2> <p>This is the Jinja 3.1.6 security release, which fixes security issues but does not otherwise change behavior and should not result in breaking changes compared to the latest feature release.</p> <p>PyPI: <a href="https://pypi.org/project/Jinja2/3.1.6/">https://pypi.org/project/Jinja2/3.1.6/</a> Changes: <a href="https://jinja.palletsprojects.com/en/stable/changes/#version-3-1-6">https://jinja.palletsprojects.com/en/stable/changes/#version-3-1-6</a></p> <ul> <li>The <code>|attr</code> filter does not bypass the environment's attribute lookup, allowing the sandbox to apply its checks. <a href="https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7">https://github.com/pallets/jinja/security/advisories/GHSA-cpwx-vrp4-4pq7</a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pallets/jinja/blob/main/CHANGES.rst">jinja2's changelog</a>.</em></p> <blockquote> <h2>Version 3.1.6</h2> <p>Released 2025-03-05</p> <ul> <li>The <code>|attr</code> filter does not bypass the environment's attribute lookup, allowing the sandbox to apply its checks. :ghsa:<code>cpwx-vrp4-4pq7</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pallets/jinja/commit/15206881c006c79667fe5154fe80c01c65410679"><code>1520688</code></a> release version 3.1.6</li> <li><a href="https://github.com/pallets/jinja/commit/90457bbf33b8662926ae65cdde4c4c32e756e403"><code>90457bb</code></a> Merge commit from fork</li> <li><a href="https://github.com/pallets/jinja/commit/065334d1ee5b7210e1a0a93c37238c86858f2af7"><code>065334d</code></a> attr filter uses env.getattr</li> <li><a href="https://github.com/pallets/jinja/commit/033c20015c7ca899ab52eb921bb0f08e6d3dd145"><code>033c200</code></a> start version 3.1.6</li> <li><a href="https://github.com/pallets/jinja/commit/bc68d4efa99c5f77334f0e519628558059ae8c35"><code>bc68d4e</code></a> use global contributing guide (<a href="https://redirect.github.com/pallets/jinja/issues/2070">#2070</a>)</li> <li><a href="https://github.com/pallets/jinja/commit/247de5e0c5062a792eb378e50e13e692885ee486"><code>247de5e</code></a> use global contributing guide</li> <li><a href="https://github.com/pallets/jinja/commit/ab8218c7a1b66b62e0ad6b941bd514e3a64a358f"><code>ab8218c</code></a> use project advisory link instead of global</li> <li><a href="https://github.com/pallets/jinja/commit/b4ffc8ff299dfd360064bea4cd2f862364601ad2"><code>b4ffc8f</code></a> release version 3.1.5 (<a href="https://redirect.github.com/pallets/jinja/issues/2066">#2066</a>)</li> <li>See full diff in <a href="https://github.com/pallets/jinja/compare/3.1.5...3.1.6">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=jinja2&package-manager=pip&previous-version=3.1.5&new-version=3.1.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/canonical/snapcraft/network/alerts). </details>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Dependabot PR merged as commit 8bc04497, bumping Jinja2 3.1.5 to 3.1.6 in the Sphinx docs requirements to fix sandbox bypass GHSA-cpwx-vrp4-4pq7.
stealth/space-bunny-alpha — closed resolved Merged PR #5312 (commit 8bc044979) upgraded the Sphinx docs environment to Jinja2 3.1.6, fixing sandbox attribute-lookup bypass GHSA-cpwx-vrp4-4pq7.
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#5312, updating the docs/.sphinx build to Jinja2 3.1.6 and incorporating the sandbox attribute-lookup bypass fix (GHSA-cpwx-vrp4-4pq7).
stealth/space-bunny-alpha — closed resolved Merged PR #5312 updated the Sphinx documentation environment from Jinja2 3.1.5 to security release 3.1.6, fixing GHSA-cpwx-vrp4-4pq7.
qwen/qwen3.6-35b-a3b — — Merged Dependabot update bumping jinja2 from 3.1.5 to 3.1.6 in /docs/.sphinx. The security patch fixes a sandbox attribute lookup bypass. Approved by reviewers and passed CI before automatic merge.
qwen3.6-35b-a3b-mtp-q6 — — Merged a Dependabot update bumping jinja2 from 3.1.5 to 3.1.6 in /docs/.sphinx to patch a sandbox bypass vulnerability in the |attr filter. The dependency upgrade was applied successfully.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#5190 (confidence 60%)

    Preceding security bump of jinja2 to 3.1.5 (commit 98511dc44) that this PR superseded; jinja2 3.1.6 completes the advisory fix.

  • Related To: snapcraft#4518 (confidence 50%)

    Earlier dependabot jinja2 bump in the same /docs/.sphinx requirements group (3.1.2 to 3.1.3).

Related issues

Issue Project State Summary Similarity
#4788 build(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docs/.sphinx snapcraft closed Closed unmerged as redundant: commit 3869f7517 had already upgraded Jinja2 to 3.1.4; Dependabot confirmed the proposed bump was no longer needed.
90%
#4518 build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /docs/.sphinx snapcraft merged Merged in #4518 via commit 9fc449a66, updating Jinja2 from 3.1.2 to 3.1.3 in /docs/.sphinx and including the xmlattr security fix.
89%
#106 build(deps): bump jinja2 from 3.1.5 to 3.1.6 imagecraft merged Merged as commit 4844f1d, upgrading Jinja2 from 3.1.5 to 3.1.6 to address GHSA-cpwx-vrp4-4pq7.
87%
#4790 build(deps): bump jinja2 from 3.1.3 to 3.1.4 in /docs snapcraft closed Dependabot's jinja2 3.1.3→3.1.4 bump for /docs was closed unmerged as redundant; PR #4789 already merged as 3869f7517 and Dependabot later confirmed jinja2 was up to date.
85%
#1038 build(deps): update jinja2 to 3.1.6 craft-parts merged Merged PR #1038 via commit 4af3a08b, upgrading Jinja2 to 3.1.6 to address CVE-2025-27516, a sandbox breakout through the attr filter.
81%
#5305 build(deps): update jinja to 3.1.6 snapcraft merged Merged PR #5305 upgraded Snapcraft's main Jinja dependency to 3.1.6 to address GHSA-cpwx-vrp4-4pq7; PR #5312 separately updated the Sphinx docs dependency.
80%
#2206 build(deps-dev): bump jinja2 from 3.1.5 to 3.1.6 charmcraft closed Jinja2 was already upgraded to 3.1.6 by #2189 (commit bba6a32e), so Dependabot closed unmerged PR #2206 as unnecessary.
80%
#2064 build(deps): update dependency jinja2 to v3.1.5 [security] (main) charmcraft merged Merged PR #2064 via commit 979176de, upgrading Jinja2 from 3.1.4 to 3.1.5 to fix CVE-2024-56326 and CVE-2024-56201.
78%
#5190 build(deps): update dependency jinja2 to v3.1.5 [security] (main) snapcraft merged Merged PR #5190 (commit 98511dc44), upgrading Jinja2 from 3.1.4 to 3.1.5 to address CVE-2024-56326 and CVE-2024-56201.
77%
#5308 build(deps): update dependency jinja2 to v3.1.6 [security] (hotfix/8.6) snapcraft closed Merged into hotfix/8.6, upgrading Jinja2 from 3.1.5 to 3.1.6 to address CVE-2025-27516.
77%