Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jinja2-3.1.5-py3-none-any.whl: 1 vulnerabilities (highest severity is: 5.5) - autoclosed #10447

Closed
mend-bolt-for-github bot opened this issue Mar 6, 2025 · 1 comment
Labels
assessment Pull requests that affect the corresponding module Mend: dependency security vulnerability Security vulnerability detected by Mend programming Pull requests that affect the corresponding module

Comments

@mend-bolt-for-github
Copy link

Vulnerable Library - jinja2-3.1.5-py3-none-any.whl

A very fast and expressive template engine.

Library home page: https://files.pythonhosted.org/packages/bd/0f/2ba5fbcd631e3e88689309dbe978c5769e883e4b84ebfe7da30b43275c5a/jinja2-3.1.5-py3-none-any.whl

Path to dependency file: /docs/requirements.txt

Path to vulnerable library: /docs/requirements.txt

Found in HEAD commit: c9f0c0df3aeb15b9978bd7f10ac66a7913f5a284

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (jinja2 version) Remediation Possible**
CVE-2025-27516 Medium 5.5 jinja2-3.1.5-py3-none-any.whl Direct 3.1.6

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2025-27516

Vulnerable Library - jinja2-3.1.5-py3-none-any.whl

A very fast and expressive template engine.

Library home page: https://files.pythonhosted.org/packages/bd/0f/2ba5fbcd631e3e88689309dbe978c5769e883e4b84ebfe7da30b43275c5a/jinja2-3.1.5-py3-none-any.whl

Path to dependency file: /docs/requirements.txt

Path to vulnerable library: /docs/requirements.txt

Dependency Hierarchy:

  • jinja2-3.1.5-py3-none-any.whl (Vulnerable Library)

Found in HEAD commit: c9f0c0df3aeb15b9978bd7f10ac66a7913f5a284

Found in base branch: develop

Vulnerability Details

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.

Publish Date: 2025-03-05

URL: CVE-2025-27516

CVSS 3 Score Details (5.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2025-03-05

Fix Resolution: 3.1.6

Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Mar 6, 2025
@github-actions github-actions bot added assessment Pull requests that affect the corresponding module programming Pull requests that affect the corresponding module labels Mar 6, 2025
@mend-bolt-for-github mend-bolt-for-github bot changed the title jinja2-3.1.5-py3-none-any.whl: 1 vulnerabilities (highest severity is: 5.5) jinja2-3.1.5-py3-none-any.whl: 1 vulnerabilities (highest severity is: 5.5) - autoclosed Mar 9, 2025
Copy link
Author

✔️ This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assessment Pull requests that affect the corresponding module Mend: dependency security vulnerability Security vulnerability detected by Mend programming Pull requests that affect the corresponding module
Projects
None yet
Development

No branches or pull requests

0 participants