Skip to content

[Snyk] Security upgrade python from 3.6 to 3.13.11#110

Open
LowinLi wants to merge 1 commit into
masterfrom
snyk-fix-e13b4d14e206d52d0ff81c1dc44f8c63
Open

[Snyk] Security upgrade python from 3.6 to 3.13.11#110
LowinLi wants to merge 1 commit into
masterfrom
snyk-fix-e13b4d14e206d52d0ff81c1dc44f8c63

Conversation

@LowinLi

@LowinLi LowinLi commented Dec 22, 2025

Copy link
Copy Markdown
Owner

snyk-top-banner

Snyk has created this PR to fix 3 vulnerabilities in the dockerfile dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Snyk changed the following file(s):

  • dockerfile

We recommend upgrading to python:3.13.11, as this image has only 189 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity CVE-2025-27363
SNYK-DEBIAN11-FREETYPE-9402510
  829  
high severity CVE-2025-27363
SNYK-DEBIAN11-FREETYPE-9402510
  829  
high severity CVE-2025-27363
SNYK-DEBIAN11-FREETYPE-9402510
  829  
high severity Out-of-bounds Write
SNYK-DEBIAN11-GLIBC-5927133
  829  
high severity CVE-2023-44487
SNYK-DEBIAN11-NGHTTP2-5953384
  829  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Out-of-bounds Write

Copilot AI review requested due to automatic review settings December 22, 2025 10:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades the Python base image from 3.6 to 3.13.11 to address security vulnerabilities including CVE-2025-27363, Out-of-bounds Write, and CVE-2023-44487, which collectively have high severity scores.

Key Changes:

  • Updates Docker base image from python:3.6 to python:3.13.11

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dockerfile
@@ -1,4 +1,4 @@
FROM python:3.6
FROM python:3.13.11

Copilot AI Dec 22, 2025

Copy link

Choose a reason for hiding this comment

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

The dependencies specified in requirements.txt and requirements-web.txt are incompatible with Python 3.13.11. The project uses torch==1.5.0, tensorflow==2.2.1, flask==1.0.2, numpy==1.18.4, and other packages with versions from 2020, which were built for Python 3.6-3.8. These packages will fail to install or run on Python 3.13.11 because:

  1. PyTorch 1.5.0 only supports up to Python 3.8
  2. TensorFlow 2.2.1 only supports up to Python 3.8
  3. NumPy 1.18.4 does not have wheels for Python 3.13
  4. Flask 1.0.2 may have compatibility issues with Python 3.13

Before upgrading to Python 3.13.11, the requirements files must be updated to versions compatible with Python 3.13. Consider upgrading to an intermediate Python version (e.g., 3.9 or 3.10) first, or update all dependencies simultaneously.

Suggested change
FROM python:3.13.11
FROM python:3.8

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants