Skip to content

Update bundled pip to 26.1 to fix CVE-2026-3219 vulnerability #149148

Closed

Description

@vstinner

Feature or enhancement

Python 3.15 ensurepip bundles pip 26.0.1 which has CVE-2026-3219 vulnerability:

A flaw was found in pip. This vulnerability occurs because pip incorrectly processes concatenated tar and ZIP files as ZIP files, regardless of their true format. This improper handling can lead to confusing installation behavior, potentially causing the installation of unintended or 'incorrect' files. This could allow an attacker to influence the installation process by providing a specially crafted archive.

See security-announce email.

Would it be possible update pip to 26.1 in ensurepip?

See issue gh-144538 for the previous pip update.

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    stdlibStandard Library Python modules in the Lib/ directory
    on Apr 29, 2026
  2. changed the title [-]Update bundled pip to 26.1 to get security fixes[/-] [+]Update bundled pip to 26.1 to fix CVE-2026-3219 vulnerability[/+] on Apr 29, 2026
  3. hugovk commented on Apr 29, 2026

    @hugovk
    Member

    Yes, it's the last step of the pip release process, and usually happens once they're confident the release went out smoothly and didn't need a patch release.

    pip RM (for this release) @sbidoul will be doing it: pypa/pip#13795 (comment), we can use this issue for the PR.

  4. sbidoul commented on Apr 29, 2026

    @sbidoul
    Contributor

    Does it work for you if I do that this weekend?

  5. vstinner commented on Apr 29, 2026

    @vstinner
    MemberAuthor

    Yes, it's the last step of the pip release process, and usually happens once they're confident the release went out smoothly and didn't need a patch release.

    Ok, good!

    pip RM (for this release) @sbidoul will be doing it: pypa/pip#13795 (comment), we can use this issue for the PR.

    Oh, I already created PR gh-149150 before seeing your message. Feel free to close my PR if you prefer to create a new one.

  6. sbidoul commented on Apr 29, 2026

    @sbidoul
    Contributor

    Oh, I already created PR #149150

    Ah, perfect then, thanks!

  7. added 3 commits that reference this issue on Apr 29, 2026
  8. hugovk commented on Apr 29, 2026

    @hugovk
    Member

    Thanks all!

  9. mcepl commented on Sep 2, 2026

    @mcepl
    Contributor

    Will this (upgrade of embedded wheels) be ever backported to 3.11 and 3.12? “As needed” doesn’t give much certain expectations.

  10. hugovk commented on Sep 3, 2026

    @hugovk
    Member

    No, we generally don't backport bundled wheels to source-only security updates.

    See #131860 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-ensurepiptype-featureA feature request or enhancementtype-securityA security issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions