Skip to content

python: upgrade pip to 26.2.2 - #497

Merged
ryantm merged 2 commits into
mainfrom
security/pip-ca-bundle
Oct 22, 2026
Merged

ryantm merged 2 commits into
mainfrom
security/pip-ca-bundle

Conversation

@rahultee

@rahultee rahultee commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

pip vendors its own certificate bundle. Updating the system CA package does not replace it. The installed pip 25.0.1 client still accepted the compromised chains listed at https://emudhra.we-have-a-problem.com/.

What changed

Upgrade pip to 26.2.2, which includes certifi 2026.10.19. Use its flit-core build backend. Apply the same package to the Python tools and Python base modules, without changing Python versions. Upstream supports Python 3.10 and newer.

This complements the system CA update in #494. The upstream Poetry change remains in #480.

Test plan

The pip derivations built successfully for Python 3.10, 3.11, 3.12 and 3.13. With the updated system CA bundle selected and the legacy CA directory excluded, pip's default truststore-backed session rejected both the direct and cross-signed test hosts on all four interpreters and accepted example.com.

Both module packaging paths evaluated successfully for all four interpreters. Changed-file formatting and git diff checks passed. No complete bundle build was run.

Rollout

Rebuild and distribute the affected Python modules together with the system CA update. Existing artifacts do not change until rebuilt. Custom user trust stores are not changed. Reverting restores the old certificate data and its unsafe trust.

  • This is fully backward and forward compatible

~ written by ⠕ Replit

@rahultee rahultee changed the title security: refresh pip vendored CA data python: upgrade pip to 26.2.2 Oct 22, 2026
@rahultee
rahultee marked this pull request as ready for review October 22, 2026 08:20
@rahultee
rahultee requested a review from a team as a code owner October 22, 2026 08:20
@rahultee
rahultee requested review from ryantm and removed request for a team October 22, 2026 08:20
@rahultee
rahultee enabled auto-merge (squash) October 22, 2026 08:21
@rahultee
rahultee disabled auto-merge October 22, 2026 16:38
@rahultee
rahultee enabled auto-merge (squash) October 22, 2026 16:38
@ryantm
ryantm disabled auto-merge October 22, 2026 16:58
@rahultee
rahultee enabled auto-merge (squash) October 22, 2026 17:05
@rahultee
rahultee disabled auto-merge October 22, 2026 17:05
@ryantm
ryantm merged commit 3dcf1be into main Oct 22, 2026
8 checks passed
@ryantm
ryantm deleted the security/pip-ca-bundle branch October 22, 2026 17:10
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