build: upgrade Poetry to 2.4.1 and pin pip/setuptools/wheel#7726
Open
wtfiwtz wants to merge 2 commits into
Open
build: upgrade Poetry to 2.4.1 and pin pip/setuptools/wheel#7726wtfiwtz wants to merge 2 commits into
wtfiwtz wants to merge 2 commits into
Conversation
- POETRY_VERSION: 2.1.4 → 2.4.1 - Upgrade pip>=26.1, setuptools>=78.1.1, wheel>=0.46.2 before Poetry install This ensures: 1. Poetry 2.4.1 is installed with current features and fixes 2. pip/setuptools/wheel are upgraded to versions with known security fixes: - setuptools>=78.1.1 remediates CVE-2025-47273 (path traversal in sdist) - pip>=26.1 and wheel>=0.46.2 provide current patch levels The pip/setuptools/wheel upgrade happens before the Poetry install to ensure Poetry itself is installed with secure build tooling. Related: split from getredash#7718 Co-authored-by: Cursor <cursoragent@cursor.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What type of PR is this?
Description
Upgrades Python build toolchain in the Dockerfile:
POETRY_VERSION: 2.1.4 → 2.4.1pip>=26.1,setuptools>=78.1.1,wheel>=0.46.2before Poetry installThis ensures:
setuptools>=78.1.1remediates CVE-2025-47273 (path traversal in sdist extraction)pip>=26.1andwheel>=0.46.2provide current patch levelsThe pip/setuptools/wheel upgrade happens before the Poetry install to ensure Poetry itself is installed with secure build tooling.
How is this tested?
make compose_buildrequired for full validation)Related Tickets & Documents
Split from #7718 per @zachliu's review feedback to separate build toolchain upgrades from base image changes.
Part of the security vulnerability remediation work tracked in #7711.
Note
This PR is marked as draft until manual container testing is complete.
Made with Cursor