NuGetDefense 1.0.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package NuGetDefense --version 1.0.0.1                
NuGet\Install-Package NuGetDefense -Version 1.0.0.1                
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="1.0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NuGetDefense --version 1.0.0.1                
#r "nuget: NuGetDefense, 1.0.0.1"                
#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.
// Install NuGetDefense as a Cake Addin
#addin nuget:?package=NuGetDefense&version=1.0.0.1

// Install NuGetDefense as a Cake Tool
#tool nuget:?package=NuGetDefense&version=1.0.0.1                

NuGetDefense

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

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

Rider

Example Error Messages in Rider

Visual Studio

Example Error Messages in Visual Studio 2019

Why a new Project?

  1. SafeNuGet hasn't seen a new commit in years and isn't able to keep up with vulnerable packages.
  2. SafeNuGet doesn't have a license (at all).
  3. A pure MSBuild task should not use dependencies and cannot get the desired results without them.

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.
  • Checks dependencies of installed packages based on the target framework.
  • Allow breaking the build based on severity of vulnerability.
  • Ignore specific vulnerabilities/packages.
  • Blacklisting NuGet Packages
  • Whitelisting NuGet Packages
  • MIT Licensed

Requirements

Currently NuGetDefense is built only in .Net Core 3.1 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in 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.3.1 523 7/13/2024
4.1.3 248 6/1/2024
4.1.2 206 5/22/2024
4.1.1 273 5/14/2024
4.1.0-pre0002 99 4/25/2024
4.1.0-pre0001 145 4/17/2024
4.0.5 745 4/25/2024
4.0.4 437 3/16/2024
4.0.3 280 3/3/2024
4.0.2 294 2/25/2024
4.0.1 274 2/14/2024
4.0.0.1 1,562 1/16/2024
4.0.0 437 1/6/2024 4.0.0 is deprecated because it has critical bugs.
4.0.0-prerelase1 180 12/20/2023 4.0.0-prerelase1 is deprecated because it has critical bugs.
3.2.5 151 4/25/2024
3.2.4.1-issue180 179 4/4/2024
3.2.4 901 3/16/2024
3.2.3 217 3/3/2024
3.2.2 234 2/25/2024
3.2.1 295 2/14/2024
3.2.0 1,132 12/14/2023
3.2.0-prerelease7 161 12/13/2023
3.2.0-prerelease6 199 7/30/2023
3.2.0-prerelease5 403 7/13/2023
3.2.0-prerelease4 354 6/16/2023
3.2.0-prerelease3 237 6/3/2023
3.2.0-prerelease2 298 5/21/2023
3.2.0-prerelease 335 5/13/2023
3.1.1 16,936 3/24/2023
3.1.0 537 3/24/2023 3.1.0 is deprecated because it has critical bugs.
3.0.11.1 10,650 3/6/2023
3.0.11-pre109 213 2/12/2023
3.0.10 2,789 1/15/2023
3.0.9 1,881 12/11/2022
3.0.8 4,841 10/30/2022
3.0.7 12,561 7/19/2022
3.0.5 3,192 7/7/2022
3.0.4 690 6/26/2022
3.0.3 3,251 6/22/2022
3.0.2 720 6/16/2022
3.0.1 11,240 2/27/2022
3.0.0 1,824 1/22/2022
3.0.0-pre0017 943 11/15/2021
2.1.2 6,419 3/12/2021
2.1.1 440 3/6/2021
2.1.0 463 2/27/2021
2.1.0-pre0015 262 2/27/2021
2.1.0-pre0011 254 2/7/2021
2.1.0-pre0010 255 1/31/2021
2.1.0-pre0007 278 1/21/2021
2.0.2 1,245 11/25/2020
2.0.2-pre0004 305 11/24/2020
2.0.2-pre0003 320 11/24/2020
2.0.2-pre0002 438 11/21/2020
2.0.2-pre0001 743 11/21/2020
2.0.1 1,041 11/13/2020
2.0.1-pre0001 298 11/12/2020
1.1.0 628 3/13/2022
1.0.19 750 10/25/2021
1.0.19-pre0002 209 10/25/2021
1.0.19-pre0001 233 10/25/2021
1.0.18 5,386 3/12/2021
1.0.17.1 387 4/2/2021
1.0.17 388 3/6/2021
1.0.17-pre0003 274 3/6/2021
1.0.17-pre0002 283 3/6/2021
1.0.16.1 472 2/27/2021
1.0.15.1 8,319 11/25/2020
1.0.15-pre0002 369 11/22/2020
1.0.14 692 11/8/2020
1.0.13.1 2,156 10/10/2020
1.0.13 499 10/10/2020
1.0.12 893 9/29/2020
1.0.11 576 9/25/2020
1.0.10 560 9/23/2020
1.0.9 604 9/21/2020
1.0.8 627 9/15/2020
1.0.7.2 14,932 6/24/2020
1.0.7.1 1,449 5/23/2020
1.0.7 600 5/17/2020
1.0.6 672 5/3/2020
1.0.5 612 4/20/2020
1.0.4 583 4/13/2020
1.0.3 1,373 4/8/2020
1.0.2 577 3/26/2020
1.0.1 626 3/1/2020
1.0.0.1 623 2/29/2020
0.0.8 540 2/22/2020
0.0.7 627 2/20/2020
0.0.6 622 2/16/2020
0.0.5 546 2/14/2020
0.0.4 562 2/6/2020
0.0.3 518 2/5/2020
0.0.2 601 2/5/2020
0.0.1 944 2/5/2020