cargo-audit
Audit Cargo.lock for crates with security vulnerabilities
0.22.2
11M downloads/mo
#2987 most downloaded on crates.io
rustsec/rustsec
What this package is like to depend on
Last release 2 months ago
05 Jun 2026
Release timing varies
gaps range from 2 weeks to 8 months
Nearly every release is documented
notes for 51 of 54 stable releases
1 version withdrawn
withdrawn after publishing
10 years old
60 releases · first in 2017
3 releases in the last 12 months
see the full history below
Release timeline
60 releases · Feb 2017 to Jun 2026Releases
latest 60-
0.22.205 Jun 2026Release notes
Open source →What's Changed
- Disable embedded file timestamps in rust-embed by @kpcyrd in #1554
- rustsec: avoid warning about packages that are not from crates.io by @djc in #1573
- cargo-audit: add CLI option to skip checking for yanked crates by @djc in #1574
- cargo-audit: cap input size for audit bin by @glaziermag in #1516
- Show affected functions in binaries by @smoelius in #1542
- cargo-audit: when run with -q, suppress dependency trees by @djc in #1587
- build(deps): bump object from 0.38.1 to 0.39.0 by @dependabot[bot] in #1589
- Affected binary tweaks by @djc in #1588
-
0.22.104 Feb 2026Nothing published for this version
-
0.22.007 Nov 2025Nothing published for this version
-
0.21.228 Feb 2025Release notes
Open source →Fixed
- Upgraded to
rustsecv0.30.2 to fix an incompatibility with Rust v1.85 and later (#1333)
- Upgraded to
-
0.21.119 Jan 2025 -
0.21.029 Oct 2024Release notes
Open source →Added
- V4 lockfile support (#1275)
cargo audit bincan now audit WebAssembly (#1182)cargo auditnow honors theCARGO_TERM_COLORenvironment variable (#1207)- Allow specifying multiple
--target-osand--target-archflags (#1185)
Changed
-
0.21.0-rc.016 Oct 2024 pre-releaseNothing published for this version
-
0.21.0-pre.030 Jul 2024 pre-releaseNothing published for this version
-
0.20.116 Aug 2024Release notes
Open source →Fixed
- Fix build for
cargo install --lockedby bumpingtimecrate inCargo.lockto work around a breaking change in rustc.
- Fix build for
-
0.20.016 Feb 2024Release notes
Open source →Changed
- Completely rewritten
cargo audit fixsubcommand (#1113)- Now it edits
Cargo.lockas opposed toCargo.toml, and performs only semver-compatible upgrades. - Fixes are performed by calling
cargo update, migrating away from the unmaintainedcargo-edit-9crate. - The subcommand is still experimental, and its behavior may change in the future. It still requires enabling the non-default
fixfeature.
- Now it edits
- Require
tame-index0.9.3 or later, fixing issues with some enterprise firewalls. (#1103)
- Completely rewritten
-
0.19.003 Feb 2024Release notes
Open source → -
0.18.324 Oct 2023Release notes
Open source →Fixed
- Fix a deadlock when the
Cargo.lockfile is missing. It only occurs withrustsecv0.28.3 or later. (#1051)
- Fix a deadlock when the
-
0.18.225 Sep 2023Release notes
Open source →Fixed
- Fix RUSTSEC-2023-0064 security issue by requiring
rustsec0.28.2 or higher.
- Fix RUSTSEC-2023-0064 security issue by requiring
-
0.18.131 Aug 2023Release notes
Open source →Fixed
- Release workflow: don't enable
fixandvendored-opensslfeatures (#980)
- Release workflow: don't enable
-
0.18.031 Aug 2023Release notes
Open source →Added
- Implement proper attribution for advisories licensed under CC-BY (#955)
cargo audit binno longer shows warnings not applicable to the binary type (e.g. no more reports of Windows-only unsoundness in ELF binaries). Previously this was implemented for vulnerabilities, but not warnings. (#964)
Changed
- Upgraded to
rustsecv0.28, bringing performance, security and compatibility improvements, but also temporarily dropping support for CPU platforms other than x86 and ARM. See the rustsec changelog for details.
-
0.18.0-rc.131 Aug 2023 pre-releaseNothing published for this version
-
0.17.610 May 2023Release notes
Open source →Added
- Upgraded to
cargo-lockv9.0.0, which enables support for sparse registries. - When scanning binary files, the binary's platform is taken into account. This prevents scenarios such as Windows-only vulnerabilities being reported on Linux binaries ([#814])
Fixed
- Advisories about
cargo audititself are no longer printed multiple times when scanning multiple files (#848)
- Upgraded to
-
0.17.523 Mar 2023Release notes
Open source →Added
- Vulnerability severity is now included in the
cargo auditoutput, if known (#825)
Changed
- Advisories marked
informational = unsoundare now reported by default, but only as warnings (#819). They do not cause the audit to fail, i.e. the exit code of the process is still 0. This behavior can be suppressed through the configuration file.
Fixed
- Vulnerability severity is now included in the
-
0.17.408 Nov 2022Release notes
Open source →Fixed
- Checks for yanked crates were broken since 0.17.0. This release restores them and adds tests to prevent future regressions.
Changed
- Binary scanning is enabled by default and documented as such. It can still be disabled by disabling the
binary-scanningfeature.
-
0.17.301 Nov 2022Release notes
Open source →Added
cargo audit binnow attempts to detect dependencies in binaries not built withcargo auditableby parsing the panic messages (#729). This only detects about a half of the dependency list and never detects C code such as OpenSSL, but works on any Rust binaries built withcargo.- Added integration tests for the
--deny=warningsflag.
Fixed
cargo audit bin --deny=warningsno longer exits after finding the first binary with warnings.
Changed
- Up to 5x faster
cargo audit binwhen scanning multiple files thanks to caching crates.io index lookups (implemented inrustseccrate). - Notices about
cargo auditorrustsecwill now result in a scanning error being reported (exit code 2) as opposed to reporting them as vulnerabilities in the scanned binary (exit code 1). They are treated as warnings by default, so--deny=warningsis required to observe the new behavior. - The
binary-scanningfeature that adds thecargo audit binsubcommand is now enabled by default, but is not documented as such.
-
0.17.206 Oct 2022 -
0.17.106 Oct 2022 -
0.17.023 May 2022 -
0.16.015 Nov 2021Release notes
Open source →Changed
- Bump
rustsecdependency to v0.25; MSRV 1.52 (#480)
Fixed
- Parse
--color=autocorrectly (#436)
- Bump
-
0.15.212 Sep 2021 -
0.15.110 Sep 2021 -
0.15.001 Jul 2021Release notes
Open source →Added
- New exit status (
2) for Cargo.lock parsing errors (#368)
Changed
- Bump
rustseccrate dependency to v0.24 (#388)
- New exit status (
-
0.14.129 Apr 2021Release notes
Open source →Added
- Generate release builds with github actions (#337)
Changed
- Bump rustsec from 0.23.2 to 0.23.3 (#333)
-
0.14.008 Mar 2021 -
0.13.127 Oct 2020Release notes
Open source →Changed
- Split
-D/--denyand--deny-warnings(#278) - Bump
rustseccrate to v0.22.2 ([#277])
Fixed
- JSON serialization ([#277])
- Split
-
0.13.026 Oct 2020 withdrawnRelease notes
Open source →Added
- Support for project specific config directories (#252)
Changed
- Bump
rustseccrate to v0.22; MSRV 1.41+ (#271) - JSON report format changes (#271)
- Presenter improvements (#268)
- Make warning types an argument (#206)
Fixed
fix --dry-runno longer requires argument (#231)
-
0.12.122 Sep 2020 -
0.12.006 May 2020 -
0.11.207 Feb 2020 -
0.11.124 Jan 2020 -
0.11.023 Jan 2020 -
0.10.014 Oct 2019Release notes
Open source → -
0.9.308 Oct 2019 -
0.9.201 Oct 2019 -
0.9.126 Sep 2019 -
0.9.025 Sep 2019Release notes
Open source →- Add
--deny-warningsoption (#128) - Upgrade to
rustseccrate v0.14 (#126) - Configuration file:
~/.cargo/audit.toml(#123, #125) - Fix
--help(#113) - Warn for outdated
rustseccrate versions (#112) - Display warnings for select informational advisories (#110)
- Display dependency trees with each advisory (#109)
- Add
-
0.9.0-beta224 Sep 2019 pre-releaseNothing published for this version
-
0.9.0-beta109 Sep 2019 pre-releaseNothing published for this version
-
0.8.125 Aug 2019 -
0.8.016 Aug 2019 -
0.7.015 Jul 2019 -
0.6.116 Dec 2018 -
0.6.015 Dec 2018 -
0.5.229 Jul 2018 -
0.5.129 Jul 2018 -
0.5.029 Jul 2018 -
0.4.024 Jul 2018 -
0.3.223 Jul 2018Release notes
Open source →- README.md: Use
<img>tag for screenshot so it renders on crates.io (#28)
- README.md: Use
-
0.3.123 Jul 2018Release notes
Open source → -
0.3.023 Jul 2018 -
0.2.124 Sep 2017 -
0.2.006 Mar 2017 -
0.1.127 Feb 2017 -
0.1.027 Feb 2017 -
0.0.007 Feb 2017Nothing published for this version