[Snyk] Security upgrade python from 3.9-slim-bookworm to 3.14.1-slim-bookworm#384
[Snyk] Security upgrade python from 3.9-slim-bookworm to 3.14.1-slim-bookworm#384
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN12-ZLIB-6008963 - https://snyk.io/vuln/SNYK-DEBIAN12-PAM-10378969 - https://snyk.io/vuln/SNYK-DEBIAN12-PAM-10378969 - https://snyk.io/vuln/SNYK-DEBIAN12-PAM-10378969 - https://snyk.io/vuln/SNYK-DEBIAN12-PAM-10378969
|
Important Review skippedIgnore keyword(s) in the title. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
There was a problem hiding this comment.
💡 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 |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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):
DockerfileWe 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:
SNYK-DEBIAN12-ZLIB-6008963
SNYK-DEBIAN12-PAM-10378969
SNYK-DEBIAN12-PAM-10378969
SNYK-DEBIAN12-PAM-10378969
SNYK-DEBIAN12-PAM-10378969
Important
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-bookwormtopython:3.14.1-slim-bookworminDockerfile.Written by Cursor Bugbot for commit f8c97dd. This will update automatically on new commits. Configure here.