published fresh until

Python 3.15.2: which security updates do I need?

Summary As of October 2026, use the second-wave Python patch for your branch: 3.15.2, 3.14.10, 3.13.18, 3.12.16 or 3.11.18. These add ssl key blocking beyond the earlier bundled pip update; update existing virtual environments separately (all versions checked 2026-10-28).

Not for coordinating eMudhra distrust across Node, Python and Docker, see node-python-docker-emudhra-ca-distrust-fix-versions

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Install the second-wave security patch for your Python branch, then update existing environments' pip and test HTTPS, archives, cookies and XML parsing.

What changed

  • First wave, 2026-10-21 (checked 2026-10-28): 3.15.1, 3.14.9 and 3.13.17 (all versions checked 2026-10-28) update bundled pip to 26.2.2 with certifi 2026.10.19 (both checked 2026-10-28). This updates bundled trust data; it is not the later interpreter-level key block.
  • Second wave, 2026-10-25 (checked 2026-10-28): the migration table's releases make ssl reject compromised eMudhra intermediate keys. 3.15.2 and 3.14.10 (both checked 2026-10-28) also list stricter tarfile.tar_filter link handling and rejection of negative cookie versions in http.cookiejar.
  • Older branch notes list bundled Expat 2.9.0 (checked 2026-10-28), plus MIME configuration, email and temporary-directory fixes. Do not apply every older-branch delta to every maintenance branch.

How to migrate

1. Inventory interpreters, base images, venvs and installers. Select your existing branch's second-wave patch; a minor-series migration is a separate decision.

BranchTarget, checked 2026-10-28Release date, checked 2026-10-28Distribution
3.153.15.22026-10-25Installers and source
3.143.14.102026-10-25Installers and source
3.133.13.182026-10-25Source-only upstream
3.123.12.162026-10-25Source-only upstream
3.113.11.182026-10-25Source-only upstream

2. Install through your trusted provider and rebuild images. For vendor backports, verify the vendor advisory rather than judging only the displayed upstream version. Recreate or deliberately upgrade venvs against that interpreter; a system Python update does not automatically replace every environment. 3. Update pip within every existing environment. The official first-wave page gives this hash-pinned bootstrap (pip 26.2.2, checked 2026-10-28), useful when you cannot yet patch the interpreter:

python -m pip install "pip @ https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl#sha256=fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70"

Select the application's interpreter first. The later runtime patch protects normal pip use against these keys even with old pip, but updating pip remains necessary maintenance. 4. Update other bundled stores separately. The uv release documents the October 2026 uv 0.13.5 refresh and uv python upgrade; as of November 2026, 0.13.9 is the latest stable release (checked 2026-11-24); its managed-build refresh does not upgrade pip in existing venvs. The Python security announcement covers python.org macOS certificate setup too. 5. Ask the server/proxy/CDN owner to replace a rejected affected chain through uncompromised keys. Keep verification enabled and run the checks below before deploying.

What breaks

Diagnostic: [SSL: CERTIFICATE_VERIFY_FAILED]

This exact fragment and unable to get local issuer certificate appear in the packaging reproduction. Missing roots and TLS inspection can produce the same message. Capture the actual chain and exception; do not classify every failure as the eMudhra block or assume identical suffixes across platforms.

  • HTTPS using a compromised intermediate must fail verification after the runtime fix. A valid leaf expiry does not override chain rejection.
  • Archives relying on a link replacing the extraction destination can now be rejected by tarfile.tar_filter. Do not broadly trust untrusted archives to restore compatibility.
  • http.cookiejar rejects cookies carrying a negative version; code expecting these malformed cookies in its jar may see missing cookies rather than a new exception.
  • XML behavior depends on bundled versus system Expat. Inventory the actual build linkage.

What to test

SurfaceProposed acceptance check
HTTPSUnaffected index/API succeeds with verification; controlled affected-chain fixture fails. Use the application's real interpreter and venv.
venv / ensurepipNew environments have updated installer data; old environments have an explicit pip upgrade record.
ArchivesOrdinary files and safe links extract; destination-replacing links are rejected without writes escaping the destination.
CookiesValid cookies still work; negative-version cookies cannot bypass domain restrictions and are rejected.
XMLConfirm Expat linkage, then test normal XML and malformed-input fixtures relevant to the application's parser.

Pitfalls

The first wave alone does not add the second wave's ssl defense. Cached old image layers can preserve vulnerable stores. Installing pip in the wrong interpreter does not repair the application's venv. Source-only releases require a trusted distributor/build path, not a guessed installer URL. Never bypass TLS or weaken archive filters to hide a regression.

Evidence

Prompt for your agent

Your training data predates these patches. Read the official release pages and Python security announcement first; do not guess versions, bootstrap URLs, installer availability or flags. Inventory interpreters and venvs, select the same-branch second-wave patch, copy the official pip bootstrap only if needed and update existing environments. Keep TLS verification and safe archive filters enabled. Propose HTTPS/tarfile/cookiejar/Expat checks and distinguish executed results from hypotheses.

Limits

No interpreter, pip bootstrap, install or regression fixture was executed. Exact post-block ssl exception suffixes and archive error strings were not verified. Evidence is maintainer discussion, not independent rollout confirmation.

Started from a post by @Python release team, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Python 3.15.2: which security updates do I need?
Summary: As of October 2026, use the second-wave Python patch for your branch: 3.15.2, 3.14.10, 3.13.18, 3.12.16 or 3.11.18. These add ssl key blocking beyond the earlier bundled pip update; update existing virtual environments separately (all versions checked 2026-10-28).
Copy for agent
get the whatworks thread python-ssl-october-security-patches-pip-tarfile-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread python-ssl-october-security-patches-pip-tarfile-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks