-
Notifications
You must be signed in to change notification settings - Fork 0
Update fastapi to 0.138.0 #584
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,3 +1,3 @@ | ||||||
| fastapi==0.6.4 | ||||||
| fastapi==0.138.0 | ||||||
| gitpython | ||||||
| uvicorn==0.4.6 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical security issue: Upgrade uvicorn from 0.4.6 to latest (0.48.0). Uvicorn before 0.11.7 is vulnerable to HTTP response splitting. CRLF sequences are not escaped in the value of HTTP headers. Attackers can exploit this to add arbitrary headers to HTTP responses, or even return an arbitrary response body, whenever crafted input is used to construct HTTP headers. Version 0.4.6 (released ~2020) is extremely outdated and vulnerable. Update π Proposed fix-uvicorn==0.4.6
+uvicorn==0.48.0π Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 4356
π Script executed:
# Check the exact content of src/requirements.txt cat src/requirements.txtRepository: salimfadhley/dockerized_python_playground
Length of output: 127
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 67
π Web query:
gitpython 3.1.9 CVE RCE vulnerabilities criticalπ‘ Result:
GitPython version 3.1.9 is significantly outdated and is affected by multiple critical and high-severity vulnerabilities, including several Remote Code Execution (RCE) flaws [1][2]. Users should upgrade to the latest version immediately [2][3]. Key security findings for GitPython 3.1.9 include: 1. RCE via Insecure Git Options and Arguments: Version 3.1.9 lacks protections against various forms of command injection. Specifically, it is vulnerable to CVE-2022-24439, which allows RCE via maliciously crafted remote URLs passed to clone commands [4][5]. Additionally, newer vulnerabilities discovered in 2026 (such as CVE-2026-42215 and CVE-2026-42284) highlight that improper validation of Git options and configuration arguments in older versions can lead to arbitrary command execution [6][7][8]. 2. Other Vulnerabilities: GitPython has had numerous security patches since version 3.1.9 to address issues like untrusted search path exploitation on Windows (CVE-2024-22190) and improper validation of reference paths or configuration values [9][3][10]. 3. Recommended Action: Because version 3.1.9 predates many critical security fixes, it is considered insecure [1][2][11]. You must update to the latest available version of GitPython to mitigate these RCE risks and other security exposures [3]. For a complete list of CVEs affecting specific versions, consult the official GitPython GitHub security advisories or the National Vulnerability Database (NVD) [6][4][9][8][10].
Citations:
Remove unused gitpython dependency with critical RCE vulnerabilities.
GitPython is listed as a direct dependency in
src/requirements.txtbut is not imported or used anywhere in the codebase. GitPython 3.1.9 is affected by multiple critical RCE vulnerabilities including CVE-2022-24439 (RCE via malicious remote URLs), CVE-2024-22190 (untrusted search path), and others. Since this dependency serves no purpose, remove it from requirements.txt entirely rather than attempting to update it.π§° Tools
πͺ OSV Scanner (2.3.8)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2022-42992)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2023-137)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2023-161)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2023-165)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2024-4)
[CRITICAL] 1-1: gitpython 3.1.9: Untrusted search path under some conditions on Windows allows arbitrary code execution
(GHSA-2mqj-m65w-jghx)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repository
(GHSA-7545-fcxq-7j24)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython blind local file inclusion
(GHSA-cwvm-v4w8-q58c)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython vulnerable to Remote Code Execution due to improper user input validation
(GHSA-hcpj-qp55-gfph)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath
(GHSA-mv93-w799-cj2w)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
(GHSA-pr76-5cm5-w9cj)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
(GHSA-v87r-6q3f-2j67)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython untrusted search path on Windows systems leading to arbitrary code execution
(GHSA-wfm5-v35h-vwf4)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython: Unsafe option check validates multi_options before shlex.split transformation
(GHSA-x2qx-6953-8485)
[HIGH] 1-1: uvicorn 0.4.6: undefined
(PYSEC-2020-150)
[HIGH] 1-1: uvicorn 0.4.6: undefined
(PYSEC-2020-151)
[HIGH] 1-1: uvicorn 0.4.6: Log injection in uvicorn
(GHSA-33c7-2mpw-hg34)
[HIGH] 1-1: uvicorn 0.4.6: HTTP response splitting in uvicorn
(GHSA-f97h-2pfx-f59f)
π€ Prompt for AI Agents
Source: Linters/SAST tools
π§© Analysis chain
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 280
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 2099
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 279
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 1474
π Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 489
π Web query:
FastAPI 0.138.0 Python version requirementπ‘ Result:
As of June 20, 2026, FastAPI version 0.138.0 requires Python 3.10 or newer [1]. This requirement is explicitly stated in the package metadata on PyPI [1]. FastAPI dropped support for Python 3.9 in version 0.129.0, establishing Python 3.10 as the minimum required version for subsequent releases [2][3].
Citations:
π Web query:
uvicorn 0.4.6 security vulnerabilities CVEπ‘ Result:
The version of Uvicorn 0.4.6 is affected by multiple security vulnerabilities, as it precedes the fixed version 0.11.7 [1][2][3]. The identified vulnerabilities for this version are: 1. CVE-2020-7694 (Log Injection): The request logger is vulnerable to ANSI escape sequence injection [2][4]. Attackers can use crafted URLs to pollute logs or potentially interact with the terminal emulator displaying those logs [2][5]. 2. CVE-2020-7695 (HTTP Response Splitting): Uvicorn is vulnerable to HTTP response splitting because CRLF sequences are not properly escaped in HTTP header values [2][6][7]. This allows attackers to inject arbitrary headers or an arbitrary response body into HTTP responses [2][6]. Both vulnerabilities were patched in Uvicorn version 0.11.7 [1][3]. It is strongly recommended to update to a modern, stable version of Uvicorn to mitigate these and subsequent security risks [3].
Citations:
Add Python 3.10+ requirement to setup.py; update uvicorn to fix security vulnerabilities.
FastAPI 0.138.0 requires Python 3.10 or newer, but
src/setup.pydoes not specify apython_requiresconstraint. This will cause silent failures on Python 3.9 or earlier. Addpython_requires=">=3.10"to setup.py.Additionally, uvicorn 0.4.6 contains two documented security vulnerabilities: CVE-2020-7694 (log injection via ANSI escape sequences) and CVE-2020-7695 (HTTP response splitting via unescaped CRLF in headers). Update to uvicorn 0.11.7 or later.
π§° Tools
πͺ OSV Scanner (2.3.8)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2022-42992)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2023-137)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2023-161)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2023-165)
[CRITICAL] 1-1: gitpython 3.1.9: undefined
(PYSEC-2024-4)
[CRITICAL] 1-1: gitpython 3.1.9: Untrusted search path under some conditions on Windows allows arbitrary code execution
(GHSA-2mqj-m65w-jghx)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython reference APIs has a path traversal vulnerability that allows arbitrary file write and delete outside the repository
(GHSA-7545-fcxq-7j24)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython blind local file inclusion
(GHSA-cwvm-v4w8-q58c)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython vulnerable to Remote Code Execution due to improper user input validation
(GHSA-hcpj-qp55-gfph)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython: Newline injection in config_writer() section parameter bypasses CVE-2026-42215 patch, enabling RCE via core.hooksPath
(GHSA-mv93-w799-cj2w)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
(GHSA-pr76-5cm5-w9cj)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
(GHSA-v87r-6q3f-2j67)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython untrusted search path on Windows systems leading to arbitrary code execution
(GHSA-wfm5-v35h-vwf4)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython: Unsafe option check validates multi_options before shlex.split transformation
(GHSA-x2qx-6953-8485)
[HIGH] 1-1: uvicorn 0.4.6: undefined
(PYSEC-2020-150)
[HIGH] 1-1: uvicorn 0.4.6: undefined
(PYSEC-2020-151)
[HIGH] 1-1: uvicorn 0.4.6: Log injection in uvicorn
(GHSA-33c7-2mpw-hg34)
[HIGH] 1-1: uvicorn 0.4.6: HTTP response splitting in uvicorn
(GHSA-f97h-2pfx-f59f)
π€ Prompt for AI Agents