Top stories

Releases now reject new files after 14 days

The Python Package Index now rejects new file uploads to releases older than 14 days, a measure meant to stop long-stable releases from being poisoned if publishing tokens or workflows are compromised. PyPI says it knows of no abuse so far, and users should not yet rely on the behavior until semantics are defined through PEP 694. Discussion began during PEP 740 in January 2024 and resumed in March 2026 after LiteLLM and Telnyx were compromised via a mutable reference in their use of the Trivy GitHub Action.

  • Image: PyPI Blog

    Incident Report: LiteLLM/Telnyx supply-chain attacks, with guidance

    PyPI published an incident report on supply-chain attacks against the popular litellm and telnyx packages. An API token exposed through an exploited Trivy dependency was used to publish releases containing malware that ran on install and sent harvested credentials and files to a remote API. The packages' maintainers rotated tokens, removed the releases and adopted Trusted Publishers. Advisories PYSEC-2026-2 and PYSEC-2026-3 cover the two attacks.

  • Token Exfiltration Campaign via GitHub Actions Workflows

    PyPI responded to an attack campaign in which malicious actors injected code into GitHub Actions workflows across many repositories to steal PyPI publishing tokens stored as GitHub secrets. Some tokens were exfiltrated to external servers, but they do not appear to have been used, PyPI itself was not compromised and no packages were published by the attackers. A GitGuardian employee flagged the fastuuid project on September 5. PyPI invalidated all affected tokens and emailed impacted maintainers from security@pypi.org.

  • PyPI and Shai-Hulud: Staying Secure Amid Emerging Threats

    PyPI revoked exposed tokens after a security researcher disclosed long-lived, still-valid PyPI credentials found in GitHub repositories compromised by the Shai-Hulud campaign. The worm-like attack on npm uses compromised accounts to publish malicious packages and exfiltrate credentials to spread further. PyPI says it has not been exploited and sees no evidence the tokens were used maliciously, but monorepos publishing to both npm and PyPI are at risk, and maintainers using build platforms are urged to secure their accounts.

Latest

  1. Image: PyPI Blog

    Stricter checks for uploaded distributions on PyPI

    PyPI has added checks over recent months that can reject uploaded source distributions (sdists) and built distributions (wheels), as part of an initiative to make Python packaging more resistant to parser differentials. Further checks will follow to make PyPI's handling of distributions less permissive and more strictly conformant to their specifications. Package consumers face no breaking changes, while maintainers seeing upload failures should use non-EOL Python versions and build backends that produce standards-conformant tar and ZIP archives.

  2. PyPI's redesigned project pages with clearer security signals are now live

    The Python Package Index has launched redesigned project pages that present security signals and package details more clearly, completing updates first announced in July. The work was shaped by user research with Python community members and carried out with Kabu Creative, implementing recommendations from the OpenSSF Attestations Style Guide. The redesign aims to explain digital attestations, introduced in 2024 as verifiable records of a release file's provenance, as PyPI faces growing interest from malicious actors.

  3. Higher limits for organization projects

    PyPI now gives projects owned by organizations higher default limits: a 200 MB maximum file upload instead of 100 MB, and 20 GB total project size instead of 10 GB. The change applies automatically to company and community organization projects, including ones moved in later, while projects leaving an organization revert to personal limits. Organizations can also create up to 10 new projects per day, and existing granted increases remain in place.

  4. PyPI now limits versions to 128 characters

    PyPI now rejects new uploads whose version string exceeds 128 characters, counted in normalized form. Only 2 of roughly 9.9 million releases have versions that long, and existing releases are unaffected. Half of releases use versions of 5 characters or fewer and 99% use 20 or fewer, while the longest is 217; very long versions hurt readability, especially for screen reader users.

  5. Checking email reputation, and allowing Outlook again

    PyPI has added an email reputation check for addresses used to register or added to accounts, rejecting those identified as disposable. With the check in place, outlook.com and hotmail.com addresses can again be used, after PyPI prohibited Outlook domains in June 2024 following a malware campaign that registered accounts in bulk. Previously PyPI relied on static domain blocklists that could not distinguish throwaway addresses on large providers and depended heavily on administrator investigation.

  6. PyPI's developer documentation has moved to dev.pypi.org

    PyPI has moved the developer documentation for Warehouse, the codebase that powers it, from warehouse.pypa.io to dev.pypi.org, with every old page redirecting to its new location. The move puts all PyPI sites under one domain alongside docs.pypi.org and blog.pypi.org. The content, including the local development setup guide, architectural overview and XML-RPC API reference, is unchanged, while user help on publishing, Trusted Publishing and the JSON API stays at docs.pypi.org.

  7. Image: PyPI Blog

    Incident Report: File Hosting Errors

    PyPI published an incident report on intermittent 502 and 503 errors from files.pythonhosted.org over about two weeks in August 2026, which caused installation failures. A canary deployment inside Fastly's network misconfigured one cache node, making Fastly's routing layer return 502s, and separate long-standing bugs in PyPI's own Fastly configuration around origin fallback and range requests were also fixed. Downloads have worked fully since August 28.

  8. Image: PyPI Blog

    Metadata requests no longer tracked in PyPI download counts

    PyPI changed its download logging on 2026-08-24 so that only requests for distribution artifacts ending in .whl, .tar.gz or .zip are counted as downloads. Previously, fetches of any object under a release's package path were counted, including PEP 658 .metadata sidecars, estimated at 40%. Tools built on PyPI's public BigQuery dataset, such as pypistats.org, will show a permanent discontinuity from that date. The work was supported by Alpha-Omega.

  9. How AWS Powers PyPI and the PSF

    The Python Software Foundation's Director of Engineering describes how most PSF infrastructure, including PyPI, Python.org and CPython services, runs on AWS, with nearly all costs covered by the AWS Open Source Credits Program. PyPI handles over six billion requests a day, about thirteen billion including file downloads, and around 10 petabytes of daily egress, almost all served at the edge by Fastly.

  10. The HTML representation of the index API is now frozen

    PyPI has adopted PEP 833, freezing the HTML representation of its index API, also known as the simple API. New packages and releases will continue to appear in the HTML index, so downstream consumers face no breaking changes. Future standardization and development will focus on the JSON representation, and consumers that use only the HTML version are strongly encouraged to migrate.

  11. Planned Updates to the PyPI User Interface

    PyPI is rolling out phased changes to its user interface over the coming months, improving how security signals are surfaced and redesigning package detail pages. Changes are staged first on TestPyPI, where the first phase is available for community feedback. The interface has been largely unchanged since 2018, while the ecosystem and malicious activity have grown. The work builds on digital attestations introduced in 2024, which record a release's build and publishing provenance.

  12. PyPI has completed its second audit

    PyPI has completed its second external security audit, performed by Trail of Bits and funded by the Sovereign Tech Agency, following a first audit in 2023. The scope focused narrowly on PyPI's codebase and behaviors, and findings included a medium-severity issue where the OIDC JTI anti-replay lock expired before the JWT leeway window closed and a low-severity TOCTOU race in OIDC token minting, both remediated. The PSF's remediation work was supported by Alpha-Omega, and the full report is published by Trail of Bits.

  13. Dispatch from PyPI Land: A Year (and a Half!) as the Inaugural PyPI Support Specialist

    Maria, the Python Software Foundation's inaugural PyPI Support Specialist since July 2024, reported on her tenure as PyPI passed one million users and 700,000 projects. The account recovery backlog, previously four months behind, is now current with an average triage time of 1.5 days, and the PEP 541 backlog, once a year and four months behind, was current as of December 2025. She resolved 725 account recovery issues in the second half of 2024 and 2,221 in 2025.

  14. PyPI in 2025: A Year in Review

    The Python Package Index published its review of 2025, highlighting security enhancements, new organization features, user-experience improvements and its responses to security incidents. During the year PyPI saw more than 3.9 million new files, more than 130,000 new projects, 1.92 exabytes transferred and 2.56 trillion requests, averaging 81,000 requests per second. Security work included email verification for TOTP-based logins to improve phishing resistance.

  15. New Login Verification for TOTP-based Logins

    PyPI now requires email verification when users log in with a TOTP authenticator from an unrecognized device or browser, a measure aimed at phishing attacks. Affected users receive an email titled "Unrecognized login to your PyPI account" and must click a link to confirm before proceeding, after which the device is trusted. Users relying on WebAuthn security keys or passkeys see no change, since those methods bind authentication to the site's origin and resist phishing.

  16. Trusted Publishing is popular, now for GitLab Self-Managed and Organizations

    PyPI extended Trusted Publishing, which lets build platforms publish packages using short-lived scoped tokens instead of long-lived credentials, to GitLab Self-Managed and Organizations. Since its 2023 launch, about 45,000 projects have configured it. PyPI began tracking Trusted Publisher uploads in early 2024; monthly files added grew from 241,000 in February 2024 to 377,000 in October 2025.

  17. Phishing attacks with new domains likely to continue

    PyPI warned of an active phishing campaign against its users that uses domain confusion and legitimate-looking emails asking recipients to verify their address or face suspension. The link points to pypi-mirror.org, which is not owned by PyPI or the PSF, and the attack mirrors one seen months earlier with a different domain. Users who entered credentials should change their PyPI password, review Security History and report suspicious activity to security@pypi.org; PyPI expects the campaigns to continue with new domains.