NuGetDefense.Lib 4.1.4

dotnet add package NuGetDefense.Lib --version 4.1.4
                    
NuGet\Install-Package NuGetDefense.Lib -Version 4.1.4
                    
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.Lib" Version="4.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NuGetDefense.Lib" Version="4.1.4" />
                    
Directory.Packages.props
<PackageReference Include="NuGetDefense.Lib" />
                    
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.Lib --version 4.1.4
                    
#r "nuget: NuGetDefense.Lib, 4.1.4"
                    
#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.Lib@4.1.4
                    
#: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.Lib&version=4.1.4
                    
Install as a Cake Addin
#tool nuget:?package=NuGetDefense.Lib&version=4.1.4
                    
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.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 259 6/8/2025
4.1.4-prerelease 126 2/9/2025
4.1.3.1 181 7/13/2024
4.1.3 161 6/1/2024
4.1.2 140 5/22/2024
4.1.0 135 5/14/2024
4.1.0-pre0002 122 4/25/2024
4.1.0-pre0001 145 4/17/2024
4.0.5 216 4/25/2024
4.0.4 181 3/16/2024
4.0.3 188 3/3/2024
4.0.2 189 2/25/2024
4.0.1 205 2/14/2024
4.0.0-prerelase1 202 12/20/2023
3.2.5 172 4/25/2024
3.2.4 176 3/16/2024
3.2.3 186 3/3/2024
3.2.2 169 2/25/2024
3.2.1 169 2/14/2024
3.2.0 281 12/14/2023
3.2.0-prerelease7 157 12/13/2023
3.2.0-prerelease6 228 7/30/2023
3.2.0-prerelease4 192 6/16/2023
3.2.0-prerelease2 224 6/3/2023
3.2.0-prerelease 221 5/13/2023
3.1.1 347 3/24/2023
3.1.0 270 3/24/2023
3.0.11.1 324 3/6/2023
3.0.11 300 3/5/2023
3.0.10 381 1/15/2023
3.0.9 384 12/11/2022
3.0.8 871 10/30/2022
3.0.7 519 7/19/2022
3.0.5 537 7/7/2022
3.0.4 540 6/26/2022
3.0.3 213 6/22/2022
3.0.2 200 6/16/2022
3.0.1 240 2/27/2022
3.0.0 235 1/22/2022
3.0.0-pre0017 244 11/17/2021
3.0.0-pre0012 322 11/6/2021
3.0.0-pre0011 232 11/1/2021
3.0.0-pre0007 331 10/16/2021
3.0.0-pre0006 230 9/30/2021
3.0.0-pre0004 236 8/10/2021
3.0.0-pre0002 228 8/5/2021
3.0.0-pre0001 303 7/30/2021