NuGetDefense 3.2.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package NuGetDefense --version 3.2.3
                    
NuGet\Install-Package NuGetDefense -Version 3.2.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NuGetDefense" Version="3.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NuGetDefense" Version="3.2.3" />
                    
Directory.Packages.props
<PackageReference Include="NuGetDefense" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NuGetDefense --version 3.2.3
                    
#r "nuget: NuGetDefense, 3.2.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NuGetDefense@3.2.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NuGetDefense&version=3.2.3
                    
Install as a Cake Addin
#tool nuget:?package=NuGetDefense&version=3.2.3
                    
Install as a Cake Tool

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

4.x preview documentation can be found by running dotnet /path/to/NuGetDefense.dll -?

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.
  • dotnet Global Tool for those who want to run it manually or just in the CI
  • 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
  • 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
  • Caching to prevent excess calls and hitting rate limits on API's
  • Blocklisting NuGet Packages
  • Allowlisting NuGet Packages
  • MIT Licensed
    • Consumable NuGet packages for bundling NuGetDefense scanners into your own software

Requirements

  • NuGetDefense v3.x is built only in .Net 6.0 so you will need the runtime/SDK installed.
  • NuGetDefense v4.x is built only in .Net 8.0 so you will need the runtime/SDK installed.

Unsupported Versions

  • Official Support follows support for the underlying framework.
  • Supporters can request support of unsupported versions (such as v2.x running on .Net 5) but are advised to use a supported runtime (for better overall security)
    • older .Net projects can use 4.x as long as the .Net 8 runtime is 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.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.4 513 6/8/2025
4.1.4-prerelease 216 2/9/2025
4.1.3.1 2,223 7/13/2024
4.1.3 513 6/1/2024
4.1.2 506 5/22/2024
4.1.1 634 5/14/2024
4.1.0-pre0002 192 4/25/2024
4.1.0-pre0001 222 4/17/2024
4.0.5 5,438 4/25/2024
4.0.4 682 3/16/2024
4.0.3 529 3/3/2024
4.0.2 522 2/25/2024
4.0.1 545 2/14/2024
4.0.0.1 1,970 1/16/2024
4.0.0 692 1/6/2024 4.0.0 is deprecated because it has critical bugs.
4.0.0-prerelase1 248 12/20/2023 4.0.0-prerelase1 is deprecated because it has critical bugs.
3.2.5 886 4/25/2024
3.2.4.1-issue180 241 4/4/2024
3.2.4 1,217 3/16/2024
3.2.3 489 3/3/2024
3.2.2 499 2/25/2024
3.2.1 536 2/14/2024
3.2.0 1,902 12/14/2023
3.2.0-prerelease7 213 12/13/2023
3.2.0-prerelease6 302 7/30/2023
3.2.0-prerelease5 505 7/13/2023
3.2.0-prerelease4 519 6/16/2023
3.2.0-prerelease3 339 6/3/2023
3.2.0-prerelease2 436 5/21/2023
3.2.0-prerelease 442 5/13/2023
3.1.1 19,071 3/24/2023
3.1.0 718 3/24/2023 3.1.0 is deprecated because it has critical bugs.
3.0.11.1 16,781 3/6/2023
3.0.11-pre109 321 2/12/2023
3.0.10 3,009 1/15/2023
3.0.9 2,069 12/11/2022
3.0.8 5,506 10/30/2022
3.0.7 13,619 7/19/2022
3.0.5 3,329 7/7/2022
3.0.4 828 6/26/2022
3.0.3 3,392 6/22/2022
3.0.2 868 6/16/2022
3.0.1 13,058 2/27/2022
3.0.0 2,032 1/22/2022
3.0.0-pre0017 1,089 11/15/2021
2.1.2 6,806 3/12/2021
2.1.1 607 3/6/2021
2.1.0 629 2/27/2021
2.1.0-pre0015 419 2/27/2021
2.1.0-pre0011 393 2/7/2021
2.1.0-pre0010 439 1/31/2021
2.1.0-pre0007 458 1/21/2021
2.0.2 1,418 11/25/2020
2.0.2-pre0004 485 11/24/2020
2.0.2-pre0003 472 11/24/2020
2.0.2-pre0002 605 11/21/2020
2.0.2-pre0001 1,159 11/21/2020
2.0.1 1,232 11/13/2020
2.0.1-pre0001 455 11/12/2020
1.1.0 784 3/13/2022
1.0.19 905 10/25/2021
1.0.19-pre0002 354 10/25/2021
1.0.19-pre0001 398 10/25/2021
1.0.18 5,545 3/12/2021
1.0.17.1 544 4/2/2021
1.0.17 582 3/6/2021
1.0.17-pre0003 465 3/6/2021
1.0.17-pre0002 439 3/6/2021
1.0.16.1 662 2/27/2021
1.0.15.1 8,511 11/25/2020
1.0.15-pre0002 547 11/22/2020
1.0.14 886 11/8/2020
1.0.13.1 2,335 10/10/2020
1.0.13 681 10/10/2020
1.0.12 1,077 9/29/2020
1.0.11 747 9/25/2020
1.0.10 750 9/23/2020
1.0.9 767 9/21/2020
1.0.8 791 9/15/2020
1.0.7.2 16,064 6/24/2020
1.0.7.1 1,677 5/23/2020
1.0.7 802 5/17/2020
1.0.6 917 5/3/2020
1.0.5 795 4/20/2020
1.0.4 787 4/13/2020
1.0.3 1,568 4/8/2020
1.0.2 753 3/26/2020
1.0.1 813 3/1/2020
1.0.0.1 798 2/29/2020
0.0.8 714 2/22/2020
0.0.7 817 2/20/2020
0.0.6 799 2/16/2020
0.0.5 734 2/14/2020
0.0.4 731 2/6/2020
0.0.3 685 2/5/2020
0.0.2 772 2/5/2020
0.0.1 1,162 2/5/2020