Skip to content

Flask-2.3.2-py3-none-any.whl: 2 vulnerabilities (highest severity is: 7.3) #15

@mend-bolt-for-github

Description

@mend-bolt-for-github
Vulnerable Library - Flask-2.3.2-py3-none-any.whl

A simple framework for building complex web applications.

Library home page: https://files.pythonhosted.org/packages/fa/1a/f191d32818e5cd985bdd3f47a6e4f525e2db1ce5e8150045ca0c31813686/Flask-2.3.2-py3-none-any.whl

Path to dependency file: /Day 61 Flask WTF Forms/requirements.txt

Path to vulnerable library: /tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047371/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047431/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047271/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047151/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047521/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info

Found in HEAD commit: 59c0f2bd7fc45c85854bdbee5b27fbcd74998c32

Vulnerabilities

Vulnerability Severity CVSS Dependency Type Fixed in (Flask version) Remediation Possible**
CVE-2025-27516 High 7.3 jinja2-3.1.5-py3-none-any.whl Transitive N/A*
CVE-2026-27205 Medium 4.3 Flask-2.3.2-py3-none-any.whl Direct flask - 3.1.3

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**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: /Day 66 REST API/requirements.txt

Path to vulnerable library: /Day 66 REST API/requirements.txt,/Day 61 Flask WTF Forms/requirements.txt,/Day 67 Upgraded Blog/requirements.txt,/Day 64 Top 10 movies website/requirements.txt,/Day 63 Libary Project/requirements.txt,/Day 62 Coffe and Wifi/requirements.txt

Dependency Hierarchy:

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

Found in HEAD commit: 59c0f2bd7fc45c85854bdbee5b27fbcd74998c32

Found in base branch: main

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 (7.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: Required
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • 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

CVE-2026-27205

Vulnerable Library - Flask-2.3.2-py3-none-any.whl

A simple framework for building complex web applications.

Library home page: https://files.pythonhosted.org/packages/fa/1a/f191d32818e5cd985bdd3f47a6e4f525e2db1ce5e8150045ca0c31813686/Flask-2.3.2-py3-none-any.whl

Path to dependency file: /Day 61 Flask WTF Forms/requirements.txt

Path to vulnerable library: /tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047371/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047431/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047271/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047151/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info,/tmp/ws-ua_20250131104712_ZOIJBC/python_LFTTYY/202501311047521/env/lib/python3.8/site-packages/Flask-2.3.2.dist-info

Dependency Hierarchy:

  • Flask-2.3.2-py3-none-any.whl (Vulnerable Library)

Found in HEAD commit: 59c0f2bd7fc45c85854bdbee5b27fbcd74998c32

Found in base branch: main

Vulnerability Details

When the "session" object is accessed, Flask should set the "Vary: Cookie" header. This instructs caches not to cache the response, as it may contain information specific to a logged in user. This is handled in most cases, but some forms of access such as the Python "in" operator were overlooked. The severity depends on the application's use of the session, and the cache's behavior regarding cookies. The risk depends on all these conditions being met. 1. The application must be hosted behind a caching proxy that does not ignore responses with cookies. 2. The application does not set a "Cache-Control" header to indicate that a page is private or should not be cached. 3. The application accesses the session in a way that does not access the values, only the keys, and does not mutate the session.

Publish Date: 2026-02-20

URL: CVE-2026-27205

CVSS 3 Score Details (4.3)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-68rp-wp8r-4726

Release Date: 2026-02-20

Fix Resolution: flask - 3.1.3

Step up your Open Source Security Game with Mend here

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions