Skip to content

[Snyk] Security upgrade python from 3.9-slim-bookworm to 3.14.1-slim-bookworm#384

Open
rhanka wants to merge 1 commit intodevfrom
snyk-fix-94b84b09e8fda0d5b244be0e6a195b27
Open

[Snyk] Security upgrade python from 3.9-slim-bookworm to 3.14.1-slim-bookworm#384
rhanka wants to merge 1 commit intodevfrom
snyk-fix-94b84b09e8fda0d5b244be0e6a195b27

Conversation

@rhanka
Copy link
Member

@rhanka rhanka commented Dec 8, 2025

snyk-top-banner

Snyk has created this PR to fix 2 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.14.1-slim-bookworm, as this image has only 41 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
critical severity Integer Overflow or Wraparound
SNYK-DEBIAN12-ZLIB-6008963
  500  
high severity Directory Traversal
SNYK-DEBIAN12-PAM-10378969
  400  
high severity Directory Traversal
SNYK-DEBIAN12-PAM-10378969
  400  
high severity Directory Traversal
SNYK-DEBIAN12-PAM-10378969
  400  
high severity Directory Traversal
SNYK-DEBIAN12-PAM-10378969
  400  

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:

🦉 Directory Traversal


Note

Upgrade Docker base image from python:3.9-slim-bookworm to python:3.14.1-slim-bookworm in Dockerfile.

Written by Cursor Bugbot for commit f8c97dd. This will update automatically on new commits. Configure here.

@coderabbitai
Copy link

coderabbitai bot commented Dec 8, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-94b84b09e8fda0d5b244be0e6a195b27

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@rhanka
Copy link
Member Author

rhanka commented Dec 8, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# Step 1: Base target #
#######################
FROM python:3.9-slim-bookworm as base
FROM python:3.14.1-slim-bookworm as base

Choose a reason for hiding this comment

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

P1 Badge Upgrade points to nonexistent Python image

Changing the base to python:3.14.1-slim-bookworm will break every Docker build: Docker Hub does not publish a 3.14.1 slim Bookworm tag (current Bookworm tags top out at 3.12.x), so docker build will error with manifest for python:3.14.1-slim-bookworm not found before any of the app layers are built. The previous 3.9-slim-bookworm tag is available, so this change regresses buildability.

Useful? React with 👍 / 👎.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

# Step 1: Base target #
#######################
FROM python:3.9-slim-bookworm as base
FROM python:3.14.1-slim-bookworm as base
Copy link

Choose a reason for hiding this comment

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

Bug: Major Python version jump breaks pinned dependencies compatibility

Upgrading from Python 3.9 to 3.14 is a major version jump that skips 5 major releases. The requirements.txt contains pinned dependencies that are incompatible with Python 3.14, including pandas==1.5.3 (only supports Python 3.8-3.11), numpy==1.26.4, and enum34 (a Python 2/3.4 backport that can cause conflicts on modern Python). This will likely cause the Docker build to fail during pip install or result in runtime errors due to incompatible package versions.

Fix in Cursor Fix in Web

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.

2 participants