Subscribe free
Morning Merge Python · Thursday, November 19, 20264 min read

PyPI rejects malformed uploads; LiteLLM flaw on KEV

Also: LangChain race fixes and a Python 3.10 drop, plus vLLM 0.34's new defaults

Installs don't change today. If your release script packs archives by hand, or you run LiteLLM, read on.

The main thing

A teal jointed workshop snake holds back one crooked crate at an inspection gate while square crates pass through.

PyPI now rejects archives that different tools could read differently

If you build with a normal build backend, you probably have nothing to do. If your release script calls tar or zip itself, check it before your next upload. In a November 18, 2026 post, PyPI said it has begun rejecting two kinds of upload over the last few weeks:

The reasoning is the interesting part. Neither tar nor ZIP was designed for Python packaging, and the tools that read them are lenient on purpose: on your laptop, you want to recover what you can from a slightly broken archive. On a package index, that leniency is a hole. Two lenient parsers can disagree, so identical bytes extract differently on different platforms and tools.

PyPI lists what that breaks: its own reading of a distribution's dependencies may not match what your installer sees, mirrors and security scanners may not see the same contents, and pip install and uv add may not produce the same install. The sharpest point: this holds even when the file's hash checks out. A hash proves everyone got the same bytes. It doesn't prove everyone reads them the same way.

PyPI says consumers see no breaking change, and that the overwhelming majority of sdists already met the pax requirement. If an upload is rejected:

More restrictions are coming. PyPI is evaluating rejecting GNU-style tar archives entirely, which the sdist spec already forbids but PyPI still accepts "because of non-trivial use by maintainers," and rejecting ZIP comments entirely. It also wants fewer differentials in CPython's own zipfile and tarfile. If your pipeline emits GNU tar today, switching now is cheaper than switching after the rejection lands.

PyPI is run by the Python Software Foundation, which launched its end-of-year fundraiser on November 18. Simon Willison, writing as a PSF board director, says its Developers in Residence program now includes three security developers working on Python, PyPI and the wider ecosystem. If your company ships Python, this is the organization running the index you just read about.

Patch check

A teal workshop snake pushes a hinged cover shut over an open side hatch on a cable-fed junction box.

CISA lists a LiteLLM code execution flaw as exploited. CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on November 18, 2026. It describes an unprotected alternate channel in BerriAI LiteLLM that could let remote attackers run arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. CISA's entry names no affected range or fixed version, so check with BerriAI before you pick one. Blocking that path at your proxy is the obvious stopgap until then, though no one has confirmed it's a complete fix. Code execution on a model gateway means access to whatever provider keys it holds, so do this first.

LangChain fixes warning-filter races. langchain==1.5.1 and langchain-core==1.8.3 (November 18) keep warning suppression context-local, and langchain stops racing on warning filters in provider inference and ModelRequest. If you run chains concurrently, take these. Separately, langchain-openai==1.8.2 stops sharing the async HTTP client between models.

langchain-anthropic 1.7.11 drops Python 3.10. The release notes include "Remove EOL'd Python 3.10 from partner packages." If you're still on 3.10, this is the notice that integration fixes are moving on without you. Plan the interpreter upgrade rather than pinning langchain-anthropic==1.7.10 forever.

Before you upgrade

A teal workshop snake carries a removed stop bar away from a storage rack as trays slide into the freed space.

vLLM 0.34.0 (November 18) asks you to delete a setting you probably tuned by hand. Extensible KV cache is now on by default: on CUDA and ROCm, vLLM sizes the cache from memory actually free after CUDA graph capture and warmup instead of from an estimate, and the maintainers say that in most cases you should now remove gpu_memory_utilization from your configs. Their example is MiniMax-M3 on H200, where the cache grows from 433k to 672k tokens. The catch, in their words: per-token decode latency "can rise on some models," by 6–18% on some H200 models at concurrency 128. If latency matters more than throughput, opt out with --gpu-memory-utilization 0.9 or --no-enable-extensible-kv-cache.

The rest of the upgrade check:

datasette-arrows 0.1a0 is a small thing to try. Datasette 1.0a43 lets plugins implement streaming export formats through the register_output_renderer() hook. This alpha plugin uses it for the Apache Arrow streaming format.

Check LiteLLM first, then look at how your release script builds its sdist.

← All Morning Merge Python issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →