Search the archive

14,369 indexed articles, 13,297 of them summarised by us.

Articles
14,369
Research papers
91,965
Models priced
2,253
Providers
163

4 results for “Seth Larson”

Newest and most relevant first

Quoting Seth Larson

PyPI releases older than 14 days are now locked, so maintainers can no longer upload files to old releases, a supply-chain hardening change affecting every Python publisher today.

The Python Package Index (PyPI), where developers download Python software, has stopped accepting new file uploads to releases older than 14 days. The rule exists to stop attackers who steal a project's credentials from slipping malicious files into old, trusted versions that thousands of users already have. No such attack has been observed yet, but PyPI says nothing technical stopped one before.

PyPI now rejects new files for any release older than 14 days, closing a supply-chain attack path where stolen publishing tokens could poison stable releases. No abuse has been detected so far. Teams publishing Python packages with long-lived tokens or automated workflows must adapt their release processes, and users of popular packages gain protection against retroactive tampering.

The change is implemented in PyPI's warehouse codebase via pull request #19727: uploads of new files to any release older than 14 days are rejected. The stated threat model is compromise of publishing tokens or CI workflows being used to add files to long-stable releases. PyPI reports no known exploitation to date. The article does not cover exception processes for legitimate late uploads.

Simon Willison’s Weblog →

Package Managers Need to Cool Down

Developers can now set a release-age delay in most major package managers, pnpm, Yarn, Bun, Deno, uv, pip and npm, to avoid installing freshly-poisoned packages during supply chain attacks like the recent LiteLLM incident.

When programmers add outside code to their projects, that code can sometimes be replaced with malicious versions. A defence called a 'dependency cooldown' means waiting a few days before installing new updates, so attackers get caught first. A March 2026 review by Andrew Nesbitt found this protection is now built into seven major package managers, including npm 11.10.0 and pip 26.0. Anyone who builds software can turn it on today.

Software supply chain attacks, like the March 2026 LiteLLM compromise, exploit the window where a malicious package update spreads before anyone notices. A cooldown delay closes that window, and as of early 2026 every major package manager supports it: pnpm 10.16, Yarn 4.10.0, Bun 1.3, Deno 2.6, uv 0.9.17, pip 26.0 and npm 11.10.0. Engineering teams should treat enabling these settings as a low-cost security baseline.

Dependency cooldowns reject packages published more recently than a set age. Implementations: pnpm 10.16 minimumReleaseAge with minimumReleaseAgeExclude; Yarn 4.10.0 npmMinimalAgeGate (minutes) plus npmPreapprovedPackages; Bun 1.3 minimumReleaseAge in bunfig.toml; Deno 2.6 --minimum-dependency-age; uv 0.9.17 --exclude-newer with exclude-newer-package overrides; pip 26.0 --uploaded-prior-to (absolute timestamps only, relative durations unsupported); npm 11.10.0 min-release-age. Seth Larson published a cron-based workaround to keep pip's absolute date current.

Simon Willison’s Weblog →

Deprecations via warnings don’t work for Python libraries

Python library maintainers cannot rely on DeprecationWarning to actually remove old APIs, because downstream users silently ignore warnings and breaking removals get reverted, as urllib3 just demonstrated.

A Python library called urllib3 removed some old, outdated functions in version 2.6.0, released on 5 December 2025. Those functions had been marked as 'deprecated', meaning users were warned they would go away, since April 2023. But other popular software, including the Kubernetes client, still relied on them and had not updated. Within days urllib3 had to put the old functions back, showing that relying on warnings alone to retire old code does not work.

urllib3, a widely used Python networking library, deleted two legacy methods in version 2.6.0 on 5 December 2025 after warning about them since April 2023. Major dependents such as kubernetes-client and fastly-py had never acted on those warnings, forcing an emergency rollback in version 2.6.1 on 8 December. The lesson for engineering leaders: deprecation warnings that are not surfaced in test suites or upgrade plans do not reduce risk, they hide it.

urllib3 2.6.0 (5 December 2025) removed HTTPResponse.getheaders() and HTTPResponse.getheader(name, default), deprecated since v2.0.0 in April 2023. Downstream breakage in kubernetes-client and fastly-py forced their restoration in 2.6.1 (8 December 2025). Seth Larson concludes DeprecationWarning does not work for Python library deprecations. James Bennett recommends running test suites with -Wonce::DeprecationWarning, 'warn once per Python process', so warnings surface without spam.

Simon Willison’s Weblog →

The PSF has withdrawn a $1.5 million proposal to US government grant program

The Python Software Foundation turned down $1.5m in NSF security funding rather than sign a DEI attestation that legally bound all its activities, showing US grant terms now carry existential clawback risk for open source foundations.

The Python Software Foundation, the nonprofit behind the Python programming language, won a $1.5 million security grant from the US National Science Foundation but gave the money back. A new clause required it to promise it runs no DEI programs, not just in the funded project, but everywhere. Since its whole mission includes supporting a diverse community, the board unanimously rejected the money rather than risk paying it back later.

The PSF withdrew a $1.5 million NSF grant, over a fifth of its roughly $6 million annual budget, because a new funding clause barred DEI programs across its entire operation, not just the funded work. Legal advisors warned accepting could expose already-spent funds to clawback, an existential risk. Nonprofits facing similar US federal terms face the same trade-off.

The grant, driven by Seth Larson and Loren Crary, would have funded Python ecosystem security work. The NSF agreement added language requiring the grantee affirm it does not and will not 'operate any programs that advance or promote DEI.' PSF legal confirmed the term applied to all foundation activities, not just the award scope. Unanimous board rejection; clawback exposure drove the decision.

Simon Willison’s Weblog →