# cargo-audit

> Audit Cargo.lock for crates with known security vulnerabilities

Source: https://talira.ai/catalog/cargo-audit-kypkt73w
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)
- Platforms: macos, linux[^2]
- Licence: Apache-2.0 OR MIT[^3]
- Pricing: Free and open source[^3]
- Free tier: yes[^3]
- Self-hostable: yes[^2]

cargo-audit is a Cargo subcommand that checks a [Rust](https://talira.ai/catalog/rust-mf51vs5t.md) project's Cargo.lock against the RustSec Advisory Database, the Rust ecosystem's database of vulnerabilities in crates, and reports each affected crate with its advisory, the fixed versions and where it sits in the dependency tree. cargo audit bin audits compiled binaries (fully when built with cargo-auditable), an experimental cargo audit fix updates vulnerable requirements in Cargo.toml, advisories can be ignored or filtered by target platform in audit.toml, and it runs in CI, including through the rust-audit-check GitHub Action. RustSec also maintains the rustsec crate and exports its advisories to OSV. Apache-2.0 or MIT.

## Links

- Website: https://rustsec.org/
- GitHub: https://github.com/rustsec/rustsec

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/cargo-audit>[^1]

## Problems it solves

- check my Rust dependencies for known security vulnerabilities
- fail CI when a crate in Cargo.lock has a security advisory
- audit a compiled Rust binary for vulnerable crates

## Features

- audit Cargo.lock against the RustSec Advisory Database
- audit compiled binaries
- experimental automatic fix
- ignore and platform filters in audit.toml
- GitHub Action

## Limitations

- If Cargo.lock is missing it runs cargo update, which can execute code from the project: audit untrusted projects with --file from outside them[^2]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.20 out of 1.
Signals: backing 0.00, extensibility 0.20.

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [OSV-Scanner](https://talira.ai/catalog/osv-scanner-99p2c8kk.md): Find known vulnerabilities in your project's dependencies, using OSV.dev
- [Snyk](https://talira.ai/catalog/snyk-sw1313nn.md): Find, fix and prevent vulnerabilities in code, open source dependencies, container images and cloud configurations
- [Dependabot](https://talira.ai/catalog/dependabot-fvy21fq9.md): Automated dependency updates built into GitHub
- [govulncheck](https://talira.ai/catalog/govulncheck-ye5fjrk1.md): Find known vulnerabilities that actually affect your Go code
- [pip-audit](https://talira.ai/catalog/pip-audit-069s0te4.md): Audit Python environments and dependency files for known vulnerabilities
- [Socket](https://talira.ai/catalog/socket-p3c5h289.md): Software supply chain security that catches malicious and risky dependencies

## Sources

[^1]: https://formulae.brew.sh/formula/cargo-audit (checked 24 Nov 2026)
[^2]: https://github.com/rustsec/rustsec/tree/main/cargo-audit (checked 24 Nov 2026)
[^3]: https://github.com/rustsec/rustsec/blob/main/cargo-audit/Cargo.toml (checked 24 Nov 2026)
