# pip-audit

> Audit Python environments and dependency files for known vulnerabilities

Source: https://talira.ai/catalog/pip-audit-069s0te4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [security / supply chain / dependency scanning](https://talira.ai/categories/security/supply-chain/dependency-scanning)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Python Packaging Authority](https://talira.ai/orgs/pypa.md)
- Creator: Trail of Bits
- Sponsors: Google

pip-audit scans Python environments, requirements files and lock files (pyproject.toml and pylock.*.toml) for packages with known vulnerabilities, using the Python Packaging Advisory Database through PyPI's JSON API, or OSV. It can fix vulnerable dependencies itself with `--fix`, writes columnar, Markdown or JSON output and CycloneDX SBOMs, reuses pip's local cache, and runs from an official GitHub Action or as a pre-commit hook. Trail of Bits created it with support from Google, and it's maintained under the Python Packaging Authority. For many languages at once, see [OSV-Scanner](https://talira.ai/catalog/osv-scanner-99p2c8kk.md).

## Links

- GitHub: https://github.com/pypa/pip-audit

## Problems it solves

- check my Python dependencies for known security vulnerabilities
- fail CI when a requirements file has a vulnerable package
- upgrade vulnerable Python packages automatically
- generate a CycloneDX SBOM for a Python project

## Features

- audits environments, requirements files and pyproject or pylock lock files
- PyPI and OSV vulnerability services
- automatic fixes with --fix
- CycloneDX SBOM output in XML or JSON
- columnar, Markdown and JSON output
- official GitHub Action and pre-commit hook

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.74, adoption 0.63, momentum 0.41, community 0.67, backing 0.65, extensibility 0.20.

- last commit 4 days ago
- 21 commits in the last 90 days
- latest release v2.10.1 5 months ago
- 1.4k GitHub stars
- 45 contributors
- backed by Python Packaging Authority
- created by Trail of Bits
- sponsored by Google

## Alternatives

- [OSV-Scanner](https://talira.ai/catalog/osv-scanner-99p2c8kk.md): Find known vulnerabilities in your project's dependencies, using OSV.dev
- [govulncheck](https://talira.ai/catalog/govulncheck-ye5fjrk1.md): Find known vulnerabilities that actually affect your Go code
- [OWASP Dependency-Check](https://talira.ai/catalog/owasp-dependency-check-gwgar92j.md): Software composition analysis that finds publicly disclosed vulnerabilities in a project's dependencies
- [Socket](https://talira.ai/catalog/socket-p3c5h289.md): Software supply chain security that catches malicious and risky dependencies
- [cargo-audit](https://talira.ai/catalog/cargo-audit-kypkt73w.md): Audit Cargo.lock for crates with known security vulnerabilities
- [bundler-audit](https://talira.ai/catalog/bundler-audit-j9mgvgvk.md): Patch-level verification for Bundler

## Sources

[^1]: https://github.com/pypa/pip-audit/blob/main/LICENSE (checked 24 Nov 2026)
