Audits Python environments, requirements files, and dependency trees for known security vulnerabilities and can automatically fix them.
pip-audit is a command-line tool that scans Python environments and dependency files for packages with known security vulnerabilities. It checks against sources like the Python Packaging Advisory Database and OSV to identify risks and can automatically upgrade vulnerable packages to secure versions.
Python developers, DevOps engineers, and security teams who need to ensure their Python projects are free from known vulnerabilities in dependencies, especially in CI/CD pipelines or local development workflows.
Developers choose pip-audit for its official support from the Python Packaging Authority (PyPA), seamless integration with existing pip workflows, ability to automatically fix issues, and support for multiple vulnerability feeds and output formats including SBOMs.
Audits Python environments, requirements files and dependency trees for known security vulnerabilities, and can automatically fix them
Maintained by the Python Packaging Authority with support from Google and Trail of Bits, ensuring reliability and ecosystem alignment, as noted in the README.
The --fix flag can automatically upgrade vulnerable dependencies to secure versions, reducing manual remediation work, demonstrated in the examples.
Supports multiple output formats like JSON and CycloneDX SBOMs, and integrates with GitHub Actions and pre-commit hooks, as highlighted in the features.
Audits against PyPI's advisory database and the OSV API, providing comprehensive coverage, as specified in the usage options.
Audits can take as long as a pip install due to full dependency resolution, which is acknowledged in the troubleshooting section as a common issue.
Does not support interactive authentication for third-party indices, making it difficult to use with some private registries, as admitted in the troubleshooting.
Vulnerability reports may include irrelevant or spam entries, requiring manual filtering with --ignore-vuln, as warned in the troubleshooting examples.
Find secrets with Gitleaks 🔑
A PHP parser written in PHP
:sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript
Static Type Checker for Python
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.