You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path to dependency file: /swagger-client/python-flask
Path to vulnerable library: /swagger-client/python-flask,/swagger-client/python-flask/test-requirements.txt,/swagger-client/python-flask/requirements.txt
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.
mend-bolt-for-githubbot
changed the title
CVE-2025-27516 (Medium) detected in jinja2-3.1.4-py3-none-any.whl
CVE-2025-27516 (High) detected in jinja2-3.1.4-py3-none-any.whl
Mar 10, 2025
CVE-2025-27516 - High Severity Vulnerability
A very fast and expressive template engine.
Library home page: https://files.pythonhosted.org/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl
Path to dependency file: /swagger-client/python-flask
Path to vulnerable library: /swagger-client/python-flask,/swagger-client/python-flask/test-requirements.txt,/swagger-client/python-flask/requirements.txt
Dependency Hierarchy:
Found in HEAD commit: 0879348474e22463e77dc76ba5e5f7e6300a2b6c
Found in base branch: master
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
Base Score Metrics:
Type: Upgrade version
Release Date: 2025-03-05
Fix Resolution: 3.1.6
Step up your Open Source Security Game with Mend here
The text was updated successfully, but these errors were encountered: