arXiv · 2507.18075
PyPitfall: Dependency Chaos and Software Supply Chain Vulnerabilities in Python
Abstract
Python software development heavily relies on third-party packages. Direct and transitive dependencies create a labyrinth of software supply chains. While it is convenient to reuse code, vulnerabilities within these dependency chains can propagate through dependencies, potentially affecting down-stream packages and applications. PyPI, the official Python package repository, hosts many packages and lacks a comprehensive analysis of the prevalence of vulnerable dependencies. This paper introduces PyPitfall, a quantitative analysis of vulnerable dependencies across the PyPI ecosystem. We analyzed the dependency structures of 378,573 PyPI packages and identified 4,655 packages that explicitly require at least one known-vulnerable version and 141,044 packages that permit vulnerable versions within specified ranges. By characterizing the ecosystem-wide dependency landscape and the security impact of transitive dependencies, we aim to raise awareness of Python software supply chain security.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Jacob Mahon, Chenxi Hou, Zhihao Yao. 2025-07-24. PyPitfall: Dependency Chaos and Software Supply Chain Vulnerabilities in Python. https://doi.org/10.1109/bigdata66926.2025.11401557
Cite the original work for its findings. Save a collection to share your selection of sources.