Skip to content

chore(deps): update dependency jinja2 to v3.1.6 [security] - autoclosed#11

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-jinja2-vulnerability
Closed

chore(deps): update dependency jinja2 to v3.1.6 [security] - autoclosed#11
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pypi-jinja2-vulnerability

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented May 13, 2026

This PR contains the following updates:

Package Change Age Confidence
jinja2 (changelog) 3.1.53.1.6 age confidence

Jinja2 vulnerable to sandbox breakout through attr filter selecting format method

CVE-2025-27516 / GHSA-cpwx-vrp4-4pq7

More information

Details

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.

Severity

  • CVSS Score: 5.4 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

pallets/jinja (jinja2)

v3.1.6

Compare Source

Released 2025-03-05

  • The |attr filter does not bypass the environment's attribute lookup,
    allowing the sandbox to apply its checks. :ghsa:cpwx-vrp4-4pq7

Configuration

📅 Schedule: (in timezone Europe/Moscow)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot requested a review from andyroode as a code owner May 13, 2026 08:11
@renovate renovate Bot changed the title chore(deps): update dependency jinja2 to v3.1.6 [security] chore(deps): update dependency jinja2 to v3.1.6 [security] - autoclosed May 22, 2026
@renovate renovate Bot closed this May 22, 2026
@renovate renovate Bot deleted the renovate/pypi-jinja2-vulnerability branch May 22, 2026 00:01
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant