-
Notifications
You must be signed in to change notification settings - Fork 0
Update fastapi to 0.136.1 #570
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.136.1 | ||
| gitpython | ||
|
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Check gitpython for latest version and security advisories
echo "=== Latest gitpython version ==="
curl -s https://pypi.org/pypi/gitpython/json | jq -r '.info.version'
echo -e "\n=== Security advisories for gitpython ==="
gh api graphql -f query='
{
securityVulnerabilities(first: 10, ecosystem: PIP, package: "gitpython") {
nodes {
advisory {
summary
severity
publishedAt
}
vulnerableVersionRange
firstPatchedVersion {
identifier
}
}
}
}'Repository: salimfadhley/dockerized_python_playground Length of output: 1443 Pin gitpython to a secure version (currently unpinned and vulnerable). The unpinned
Pin 🤖 Prompt for AI Agents |
||
| 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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Check uvicorn for latest version and security advisories
echo "=== Latest uvicorn version ==="
curl -s https://pypi.org/pypi/uvicorn/json | jq -r '.info.version'
echo -e "\n=== Security advisories for uvicorn ==="
gh api graphql -f query='
{
securityVulnerabilities(first: 10, ecosystem: PIP, package: "uvicorn") {
nodes {
advisory {
summary
severity
publishedAt
}
vulnerableVersionRange
firstPatchedVersion {
identifier
}
}
}
}'Repository: salimfadhley/dockerized_python_playground Length of output: 600 🏁 Script executed: # Find and examine requirements.txt
find . -name "requirements.txt" -type f -exec head -20 {} +Repository: salimfadhley/dockerized_python_playground Length of output: 126 🏁 Script executed: # Check FastAPI version if it exists in the requirements
if [ -f "src/requirements.txt" ]; then
echo "=== Full src/requirements.txt ==="
cat src/requirements.txt
fiRepository: salimfadhley/dockerized_python_playground Length of output: 160 🌐 Web query:
💡 Result: FastAPI version 0.136.1 does not appear to exist as of 2026-04-23. The latest released version is 0.136.0 (released 2026-04-16). FastAPI does not have a strict runtime dependency on Uvicorn. Uvicorn is included as an optional dependency in the "standard" extras group. From FastAPI's pyproject.toml (current master, matching 0.136.0): Under [project.optional-dependencies.standard]: - "uvicorn[standard] >=0.12.0" This is the recommended Uvicorn version for use with FastAPI 0.136.0, including uvloop for high performance. To install FastAPI with standard dependencies (including Uvicorn): pip install "fastapi[standard]" Core runtime dependencies of FastAPI (not optional): - starlette >=0.46.0 - pydantic >=2.9.0 - typing-extensions >=4.8.0 - typing-inspection >=0.4.2 - annotated-doc >=0.0.2 Uvicorn is the recommended ASGI server for running FastAPI applications: uvicorn main:app --reload Citations:
Critical: uvicorn 0.4.6 has HIGH severity security vulnerabilities. uvicorn 0.4.6 contains two HIGH severity security vulnerabilities:
Both are patched in uvicorn 0.11.7 and later. Additionally, this version is extremely outdated (released ~2019) and incompatible with any modern ASGI setup. Upgrade to uvicorn >=0.12.0 (or latest 0.46.0). 🤖 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: 213
🌐 Web query:
What is the minimum uvicorn version required by FastAPI 0.136.1?💡 Result:
The minimum uvicorn version required by FastAPI 0.136.1 is 0.12.0 (with [standard] extras for high performance, including uvloop).
Citations:
Critical: FastAPI 0.136.1 is incompatible with uvicorn 0.4.6; also, FastAPI is not used in this codebase.
FastAPI 0.136.1 requires a minimum uvicorn version of 0.12.0, but uvicorn 0.4.6 (pinned in requirements) is far too old and will cause runtime failures. Additionally, no FastAPI imports, app instantiation, or route decorators were found anywhere in the codebase, indicating FastAPI is not actually used.
Either remove FastAPI from requirements if it's unintended, or if FastAPI integration is planned, update uvicorn to at least 0.12.0 and address the corresponding setup.py entry point misconfigurations.
🧰 Tools
🪛 OSV Scanner (2.3.5)
[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 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 vulnerable to remote code execution due to insufficient sanitization of input arguments
(GHSA-pr76-5cm5-w9cj)
[CRITICAL] 1-1: gitpython 3.1.9: GitPython untrusted search path on Windows systems leading to arbitrary code execution
(GHSA-wfm5-v35h-vwf4)
[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