Mentatcurated
Artificial Intelligence high · first-party

The 14-day window

PyPI will no longer let anyone add a new file to a software release once it is two weeks old, quietly closing a door that stayed open forever.

The Python Package Index feeds hundreds of millions of installs a day, and until this month every release it hosted stayed editable for life. A maintainer could add a file to a three-year-old version at any time. So could anyone who stole that maintainer's publishing token. That meant a thief could slip a poisoned build into an old, long-trusted release without ever cutting a new version number to raise suspicion. As of this month PyPI simply refuses the upload once the release is fourteen days old.

"As far as we are aware this has not yet been abused, but there is no technical reason beyond that attackers weren't aware it was possible." — Seth Larson, PyPI

The striking part is that this fixes an attack no one has been caught doing. PyPI's own post concedes the open-old-release door has never been walked through, and that the only thing guarding it so far was that attackers had not thought to try. Registries usually harden after a breach, not before one. This is the rarer move of shutting a latent door on the way past it.

It costs almost nothing to close. PyPI checked its 15,000 most-popular projects and found only 56 had ever added a new file to a release more than two weeks after publishing it, usually to backfill support for a fresh Python version. Everyone else finishes a release within days. The maintainers are also unusually plain about the limits: there is still no way for your tools to ask whether a release is frozen, so nobody should lean on the behavior yet. The guarantee that makes it dependable is deferred to a future upload API.

The lenses

Novelty 3
Impact · breadth 4
Impact · depth 3
Actionable 1
Delight 4
Substance 5
Hype 3

The facts

What changedNew files are refused on any release older than 14 days, across all of PyPI, on by default
Who it inconveniencesAbout 56 of the 15,000 most-popular projects, which backfill late uploads for new Python versions
Not yet a guaranteeNo way to check a release's frozen state yet; a dependable version waits on a future upload API
Open blog.pypi.org →

How this connects

Tap a node to open it

How this connects