Subscribe free
Morning Merge Python · Wednesday, November 18, 20264 min read

Patch certifi now; PyPI flags shaky provenance

Also: uv 0.13.9, six Django CVEs, and pytest 9.2 makes parametrize options keyword-only

If you do one thing today, check which certifi your container images ship. Most of the rest can wait for your next lock.

The main thing

A teal jointed workshop snake pulls one cracked plate out of a hanging chain

A compromised CA reached Python through three layers of bundling

The eMudhra compromise went public on Oct. 20. Per the certifi advisory (GHSA-6q48-6c7w-9gw2, rated critical), eight intermediate CA certificates chaining to an emSign root had compromised private keys. Anyone holding one could issue valid-looking certificates for any hostname, and an on-path attacker could then intercept TLS from clients that trust certifi's bundle: requests, urllib3, pip, and the python.org macOS installer.

The odd part is why this became a Python problem at all. Browsers were covered quickly because they pull revocation lists outside the software-update cycle. Python tooling doesn't. Python bundles pip through ensurepip, pip vendors Requests, and Requests depends on certifi. The PSF's Nov. 5 write-up puts all three on the critical path for a permanent fix, and notes there's no easy answer for older Pythons that keep the pip they shipped with.

So CPython added a last-resort block in ssl. The security releases announced Oct. 26 (3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18) reject the compromised keys during the handshake (CVE-2026-115557). According to the CPython issue, the check matches the key itself, so cross-signed certificates reusing a key fail too, whenever verification is on. The release team says ordinary pip use, including upgrading pip itself, is safe on those releases even before pip is updated. The same batch also closes a tarfile tar_filter link bypass (CVE-2026-114583).

What to do:

The PSF wants the next incident to need no release at all, and points to upki, already adopted by Ubuntu, for browser-style revocation. No timeline yet.

Packaging and tooling

A teal workshop snake inspects sealed crates on a conveyor through a loupe

PyPI now shows provenance warnings (Nov. 6). A new Security tab lists per-file attestations, and four warnings sit at the top of project pages: incomplete, inconsistent, changed, or lost provenance. Maintainers, take note: wheels published through Trusted Publishing plus an sdist uploaded with an API token now earns an "Incomplete Provenance" warning.

uv 0.13.9 (Nov. 17) rejects wheels an index advertises under a different package name and fixes uv lock --locked rejecting equivalent platform markers written differently. It also shrinks lockfiles by factoring repeated marker conditions, so your next lock may produce a bigger diff than usual. 0.13.8 (Nov. 12) made Unix plaintext credential files owner-only and moved managed CPython 3.11 through 3.15 builds to pip 26.3.

pip 26.3 (Nov. 2) extends pylock.toml support: -r pylock.toml[extra1,extra2] selects extras and --group pylock.toml:docs selects groups. It also refuses an HTTP redirect to a file: URL.

PyPI caps versions at 128 characters (Oct. 23), counted after normalization. Two of roughly 9.9 million releases were that long. Separately, organization-owned projects now get 200 MB files and 20 GB totals (Oct. 26), with nothing to turn on.

Libraries to patch

Django 6.1.3, 6.0.10, and 5.2.19 (Nov. 3) fix six CVEs. The one rated moderate, CVE-2026-111362, is GeoDjango SSRF: GDAL resolves a URL in a GeoJSON crs member, so a submitted geometry could make the server fetch a URL or read a file. A related fix (CVE-2026-114582) needs GDAL 3.9 or later for full protection, and the new gis.W001 check warns when you're below it. No GeoDjango? The cache fix still applies: cache_page() gave a missing Vary header and an empty one the same key (CVE-2026-113593).

pytest 9.2.0 (Oct. 27) makes indirect, ids, and scope keyword-only in @pytest.mark.parametrize. Passing them positionally now raises a TypeError, which is at least clearer than the old error. -c with a missing config path is now a usage error.

NumPy 2.5.5 (Nov. 15) is an unusually large patch release for Python 3.12 through 3.15. One behavior change: casting a structured void or subarray dtype to StringDType now raises TypeError instead of decoding raw bytes as UTF-8. pandas 3.1.1 (Nov. 4) is a regression-fix release the maintainers recommend for all 3.1.x users.

Coming in 3.16

A teal workshop snake lifts one bead off a rail as the rest close the gap

Python 3.16.0a2 (Nov. 10) is the second of seven alphas. So far, re gains nested character sets, set operations like intersection and difference, and Unicode property matching. uuid4() and uuid7() get C implementations the release team puts at about 15 to 30 times faster in microbenchmarks, and ssl supports Encrypted Client Hello with OpenSSL 4.0 or later. uv 0.13.8 already added it as a managed Python. Alpha 3 is due Dec. 15, and features can land until beta 1 on May 4, 2027.

PEP 851 proposes list.discard(x): remove the first equal item if present and return whether anything was removed. It's a Draft, created Oct. 27 and aimed at 3.16. The motivation is bigger than the method: if x in lst: lst.remove(x) scans twice on a hit and can race on a list shared between threads.

Patch certifi and rebuild images first; pytest 9.2 is the change most likely to turn a green CI run red.

← All Morning Merge Python issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →