jsonzilla/template_fastapi_mongodb

fastapi-0.95.1-py3-none-any.whl: 2 vulnerabilities (highest severity is: 7.5)

mend-bolt-for-github opened this issue · 0 comments

Vulnerable Library - fastapi-0.95.1-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (fastapi version) Remediation Possible**
CVE-2023-29159 High 7.5 starlette-0.26.1-py3-none-any.whl Transitive 0.95.2
WS-2023-0138 Low 3.7 starlette-0.26.1-py3-none-any.whl Transitive 0.95.2

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

Details

CVE-2023-29159

Vulnerable Library - starlette-0.26.1-py3-none-any.whl

The little ASGI library that shines.

Library home page: https://files.pythonhosted.org/packages/12/48/f9c1ec6bee313aba264fbc2483d9070f4e4526f2538e2b55b1e4a391d938/starlette-0.26.1-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy:

  • fastapi-0.95.1-py3-none-any.whl (Root Library)
    • starlette-0.26.1-py3-none-any.whl (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Directory traversal vulnerability in Starlette versions 0.13.5 and later and prior to 0.27.0 allows a remote unauthenticated attacker to view files in a web service which was built using Starlette.

Publish Date: 2023-06-01

URL: CVE-2023-29159

CVSS 3 Score Details (7.5)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-v5gw-mw7f-84px

Release Date: 2023-06-01

Fix Resolution (starlette): 0.28.0

Direct dependency fix Resolution (fastapi): 0.95.2

Step up your Open Source Security Game with Mend here

WS-2023-0138

Vulnerable Library - starlette-0.26.1-py3-none-any.whl

The little ASGI library that shines.

Library home page: https://files.pythonhosted.org/packages/12/48/f9c1ec6bee313aba264fbc2483d9070f4e4526f2538e2b55b1e4a391d938/starlette-0.26.1-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt

Dependency Hierarchy:

  • fastapi-0.95.1-py3-none-any.whl (Root Library)
    • starlette-0.26.1-py3-none-any.whl (Vulnerable Library)

Found in base branch: main

Vulnerability Details

starlette before 0.27.0 is vulnerable to Path Traversal. When using StaticFiles, if there's a file or directory that starts with the same name as the StaticFiles directory, that file or directory is als. which vulnerability.

Publish Date: 2023-05-16

URL: WS-2023-0138

CVSS 3 Score Details (3.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • User Interaction: None
    • 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-v5gw-mw7f-84px

Release Date: 2023-05-16

Fix Resolution (starlette): 0.28.0

Direct dependency fix Resolution (fastapi): 0.95.2

Step up your Open Source Security Game with Mend here