Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: 166
🌐 Web query:
For FastAPI 0.135.2, what Uvicorn versions are recommended/commonly used, and are there known security advisories affecting uvicorn 0.4.6?💡 Result:
For FastAPI 0.135.2, the recommended and commonly used Uvicorn versions are uvicorn[standard] >=0.12.0, as specified in FastAPI's optional dependencies in pyproject.toml and PyPI pages for recent versions like 0.135.0 and 0.135.1. Examples in deployment guides and third-party setups (e.g., requirements.txt) commonly use recent versions like 0.30.0. Uvicorn 0.4.6 has known security vulnerabilities, including a medium-severity race condition (fixed in 0.12.3), log injection (fixed in 0.11.7), and HTTP response splitting (CVE-2020-7695, fixed in 0.11.7). These affect early versions before 0.11.7 and 0.12.3.
Citations:
🏁 Script executed:
Repository: salimfadhley/dockerized_python_playground
Length of output: 126
Upgrade is incomplete:
uvicorn==0.4.6is both vulnerable and incompatible with FastAPI 0.135.2.FastAPI 0.135.2 requires
uvicorn>=0.12.0, but the current pin ofuvicorn==0.4.6violates this dependency and retains multiple known security vulnerabilities (CVE-2020-7695, log injection, race condition). Update Uvicorn in this PR to resolve both the incompatibility and security issues.Suggested dependency update
📝 Committable suggestion
🧰 Tools
🪛 OSV Scanner (2.3.3)
[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