Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fastapi==0.6.4
fastapi==0.136.0
gitpython

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check gitpython security advisories and find patched version

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: 1360


Pin gitpython to a patched version to address critical security vulnerabilities.

The unpinned dependency allows installation of vulnerable versions with critical remote code execution flaws (patched in 3.1.32, 3.1.30), blind local file inclusion (patched in 3.1.37), and Windows search path execution vulnerabilities (patched in 3.1.33, 3.1.41).

-gitpython
+gitpython>=3.1.43
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
gitpython
gitpython>=3.1.43
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/requirements.txt` at line 2, Pin the gitpython dependency in
requirements.txt to a patched release to avoid installing vulnerable versions;
replace the bare "gitpython" entry with a constrained spec such as
"gitpython>=3.1.41,<4.0" (or an exact patched version like "gitpython==3.1.41")
and then regenerate any lock files or reinstall dependencies to verify no
regressions.

uvicorn==0.4.6

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check FastAPI 0.136.0 uvicorn dependency requirements and security advisories

# Check for security advisories on uvicorn 0.4.6
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: 521


🌐 Web query:

FastAPI 0.136.0 uvicorn version requirements

💡 Result:

FastAPI 0.136.0 does not appear to exist as of 2026-04-16. The latest version is 0.135.3 (released 2026-04-01). FastAPI does not have a direct runtime dependency on Uvicorn; Uvicorn is an optional dependency included in the [standard] extras. Uvicorn requirement: uvicorn[standard] >=0.12.0 (from pyproject.toml master branch and PyPI metadata for recent versions). To run a FastAPI app, install with: pip install "fastapi[standard]" This includes Uvicorn >=0.12.0 with high-performance extras like uvloop. No specific changes or tighter bounds for recent versions like 0.135.x; the minimum remains >=0.12.0 across all extras (standard, standard-no-fastapi-cloud-cli, all).

Citations:


Update uvicorn to a compatible version and address security vulnerabilities.

uvicorn 0.4.6 is deprecated and contains HIGH severity security vulnerabilities (log injection and HTTP response splitting affecting versions < 0.11.7). It is incompatible with any modern FastAPI version, which requires uvicorn >=0.12.0. Update to a recent version (0.23.x or later recommended).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/requirements.txt` at line 3, Replace the deprecated pinned uvicorn==0.4.6
in requirements.txt with a modern, secure release (for example update to
uvicorn>=0.23.0 or pin to a 0.23.x release) to remove the log injection/HTTP
response splitting vulnerabilities and satisfy FastAPI's minimum uvicorn
requirement; after changing the uvicorn entry in requirements.txt, re-run
dependency installation and the test suite (and any security scanner) to ensure
compatibility with FastAPI and no regressions.