NuGetDefense.Tool 1.0.17.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global NuGetDefense.Tool --version 1.0.17.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local NuGetDefense.Tool --version 1.0.17.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NuGetDefense.Tool&version=1.0.17.1                
nuke :add-package NuGetDefense.Tool --version 1.0.17.1                

NuGetDefense

Join the chat at https://gitter.im/NuGetDefense/community NuGet version

An MSBuildTask that checks for known vulnerabilities. Inspired by OWASP SafeNuGet.

Docs

View the full documentation for NuGetDefense here

Features

  • Uses Multiple Sources to check for known vulnerabilities in third-party libraries (NuGet packages)
  • Simple installation/configuration: the NuGet Package is all you need.
  • Transitive Dependency Checking
    • SDK style projects only (older project format is not supported by the dotnet cli)
    • Uses the versions resolved by the dotnet cli at build
  • Project Reference Scanning
    • Scan all projects in a hierarchy by installing NuGet Defense to the top level package (pre-release)
  • Allow breaking the build based on severity of vulnerability.
  • Ignore specific vulnerabilities/packages.
  • Sensitive/Internal Packages filtering
    • Don't send packages that are sensitive/internal to remote vulnerability sources
  • Blocklisting NuGet Packages
  • Allowlisting NuGet Packages
  • MIT Licensed

Requirements

  • NuGetDefense v1.x is built only in .Net Core 3.1 so you will need the runtime/SDK installed.
  • NuGetDefense v2.x is built only in .Net 5.0 (significantly faster) so you will need the runtime/SDK installed.

How does it work?

NuGetDefense is a bundled dotnet tool that runs using an MSBuild ExecTask after your project finishes building.

Love it? Support it!

You can sponsor this project on Github and Patreon. The funds will be used to pay for software licenses and cloud/hardware costs that keep my projects running.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
4.1.4-prerelease 107 2/9/2025
4.1.3.1 3,581 7/13/2024
4.1.3 1,477 6/1/2024
4.1.2-prerelease0001 106 5/20/2024
4.1.1 452 5/14/2024
4.1.0-pre0002 134 4/25/2024
4.1.0-pre0001 173 4/17/2024
4.0.5 677 4/25/2024
4.0.4 1,205 3/16/2024
4.0.3 736 3/3/2024
4.0.2 272 2/25/2024
4.0.1 590 2/14/2024
4.0.0.1 859 1/16/2024
4.0.0 400 1/6/2024 4.0.0 is deprecated because it has critical bugs.
4.0.0-prerelase1 236 12/20/2023 4.0.0-prerelase1 is deprecated because it has critical bugs.
3.2.5 155 4/25/2024
3.2.4 238 3/16/2024
3.2.4-issue180 191 4/4/2024
3.2.3 310 3/3/2024
3.2.2 209 2/25/2024
3.2.1 185 2/14/2024
3.2.0 530 12/14/2023
3.2.0-prerelease7 216 12/13/2023
3.2.0-prerelease6 309 7/30/2023
3.2.0-prerelease5 622 7/13/2023
3.2.0-prerelease4 721 6/16/2023
3.2.0-prerelease3 745 6/3/2023
3.2.0-prerelase2 614 5/21/2023
3.2.0-prerelase 658 5/13/2023
3.1.1 10,398 3/24/2023
3.1.0 1,126 3/24/2023
3.0.11 2,756 3/6/2023
3.0.10 2,430 1/15/2023
3.0.9 1,178 12/11/2022
3.0.8 1,410 10/30/2022
3.0.7 8,412 7/19/2022
3.0.5 1,853 7/7/2022
3.0.4 1,746 6/26/2022
3.0.3 1,211 6/22/2022
3.0.2 1,075 6/16/2022
3.0.1 3,949 2/27/2022
3.0.0 1,230 1/22/2022
3.0.0-pre0017 703 11/17/2021
2.1.2.1 15,204 4/2/2021
2.1.2 857 3/12/2021
2.1.1 1,670 3/6/2021
2.1.1-pre0001 590 3/5/2021
2.1.0 739 2/27/2021
2.1.0-pre0011 427 2/7/2021
2.1.0-pre0010 477 1/31/2021
2.1.0-pre0008 402 1/26/2021
2.0.2 826 11/25/2020
2.0.2-pre0002 560 11/21/2020
2.0.1 638 11/13/2020
1.0.18 1,947 3/12/2021
1.0.17.1 624 4/2/2021
1.0.17 627 3/6/2021
1.0.17-pre0001 571 3/5/2021
1.0.16 857 2/27/2021
1.0.15 6,097 11/25/2020
1.0.15-pre0001 656 11/21/2020
1.0.14 705 11/8/2020
1.0.11 791 9/25/2020
1.0.10 767 9/23/2020
1.0.9 521 9/21/2020