Python security crisis: The ecosystem under siege
The tripling of vulnerabilities and the rise of malware in PyPI force a response funded by Anthropic
November 10, 2026 · 4 min read
TL;DR: The Python ecosystem faces a 300% increase in vulnerabilities and 60% more malware in PyPI. The PSF, with support from Anthropic, is implementing automation measures to secure the software supply chain.
The perfect storm in Python's central repository
The Python ecosystem, the backbone of modern artificial intelligence, data analysis, and web infrastructure, is going through its most critical moment. According to recent data released by Seth Larson, security developer-in-residence at the Python Software Foundation (PSF), the number of CVEs (Common Vulnerabilities and Exposures) linked to both the language and its package manager, pip, has tripled in the last year. This exponential increase is not an isolated event: it is a symptom of a systemic erosion in the software supply chain. Critical infrastructure projects like cURL, whose importance in network communication is absolute, have reported an identical trend, consolidating the narrative that free software, despite its ubiquity, is under unprecedented operational and security pressure.
Historically, open-source security was based on the premise that 'many eyes make all bugs shallow.' However, the current scale of PyPI (Python Package Index) has exceeded the capacity for human oversight. This paradigm shift is reminiscent of past incidents like the SolarWinds supply chain attack or the Log4j case, where a vulnerability in a seemingly harmless dependency could compromise thousands of organizations. The difference today is speed: automation has allowed malicious actors to scale their attacks industrially.
The PyPI factor: an automated battlefield
The situation in PyPI is alarming. There has been a 60% increase in the amount of malware detected and removed from the repository in the last twelve months. This figure is conservative, as it only reflects the malware that has been identified, not necessarily what operates under the radar. The sophistication of these attacks is notable: attackers use typosquatting techniques (impersonating popular package names), malicious code injection into compromised legitimate dependencies, and, increasingly, AI-generated tools to obfuscate malicious code.
AI acts as a double-edged sword here. While developers use LLMs to accelerate software creation, malicious actors employ the same technologies to generate payloads that evade static detection filters. Automation is no longer a resource exclusive to defenders; it is the primary engine of the threat. This imbalance forces the PSF to move away from manual response models, which are inherently slow, toward autonomous quarantine systems. The ability to detect, isolate, and remove a package in seconds, without human intervention, is the new technological frontier of security in the Python ecosystem.
The response: professionalization and external funding
To counter this vulnerability, the PSF has brought on Brett Smith as a new security developer. This move, funded by an 'ecosystem security' grant provided by Anthropic, marks a shift in how critical software security is funded. Unlike general corporate donations, this targeted funding model is a direct response to the need for technical professionalization.
The priorities for this new phase include:
- System scalability: Implementing an autonomous quarantine system that reduces the manual burden on the response team.
- Reporting standardization: Acting as a CVE Numbering Authority (CNA) to ensure that every vulnerability is documented, cataloged, and communicated in a standardized way, avoiding information chaos.
- Operational proactivity: Moving from a 'firefighter' model (where one only reacts to incidents) to a 'security architect' model, where breaches are prevented through proactive scanning of newly uploaded packages.
This level of professionalization is necessary to process the growing volume of reports received by the PSRT (Python Security Response Team), a team that, until recently, relied heavily on volunteers.
What does this mean for companies?
For organizations that integrate Python into their workflows—from AI startups to tech giants—this scenario redefines risk management. Implicit trust in public repositories is an executive-level security risk. The trend suggests that dependency audits (Software Bill of Materials or SBOM) will cease to be a best practice and become a mandatory compliance requirement.
The collaboration between Anthropic and the PSF is a historic precedent. It indicates that companies leading the AI race have understood that if the Python ecosystem falls, their own infrastructure collapses. It is not philanthropy; it is strategic self-defense. Companies must prepare for an environment where supply chain security will be evaluated with the same rigor as code performance. The era of 'blind installation' of packages is over; the future demands scanning tools, version-locking policies, and constant vigilance over the dependencies that, although invisible, sustain the global digital economy.