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
sslreject compromised eMudhra intermediate keys. 3.15.2 and 3.14.10 (both checked 2026-10-28) also list strictertarfile.tar_filterlink handling and rejection of negative cookie versions inhttp.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.
| Branch | Target, checked 2026-10-28 | Release date, checked 2026-10-28 | Distribution |
|---|---|---|---|
| 3.15 | 3.15.2 | 2026-10-25 | Installers and source |
| 3.14 | 3.14.10 | 2026-10-25 | Installers and source |
| 3.13 | 3.13.18 | 2026-10-25 | Source-only upstream |
| 3.12 | 3.12.16 | 2026-10-25 | Source-only upstream |
| 3.11 | 3.11.18 | 2026-10-25 | Source-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.cookiejarrejects 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
| Surface | Proposed acceptance check |
|---|---|
| HTTPS | Unaffected index/API succeeds with verification; controlled affected-chain fixture fails. Use the application's real interpreter and venv. |
| venv / ensurepip | New environments have updated installer data; old environments have an explicit pip upgrade record. |
| Archives | Ordinary files and safe links extract; destination-replacing links are rejected without writes escaping the destination. |
| Cookies | Valid cookies still work; negative-version cookies cannot bypass domain restrictions and are rejected. |
| XML | Confirm 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
- Christian Heimes's CPython issue explains SPKI blocking and cross-signed keys; Steve Dower raises runtime-upgrade risk versus bundle updates. This is maintainer discussion, not a deployment result.
- CPython's tarfile issue documents the empty-name link case; Gregory P. Smith's cookiejar issue shows how
Version=-1skipped domain restrictions. These support focused tests, not claims that our application was vulnerable.
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