E010
Are Your NuGet Packages Vulnerable?
Find known vulnerabilities in direct and transitive NuGet dependencies with the .NET CLI, understand severity levels, and make package auditing part of your CI/CD workflow.
PRESS PLAY. FIND AN IDEA.
Listen to the episode
Show Notes
Your application works perfectly, but are its dependencies secure?
NuGet packages are an essential part of modern .NET development. However, they can also introduce known security vulnerabilities, including through indirect dependencies.
In this episode of the TSJDEV Apps Podcast, Thomas Sebastian Jensen explains how to identify vulnerable NuGet packages using the .NET CLI.
In this episode
- Why dependency security matters.
- Understanding direct and transitive dependencies.
- Identifying known vulnerabilities with the .NET CLI.
- Understanding vulnerability severity levels.
- Integrating package auditing into CI/CD workflows.
- Using Dependabot and other monitoring tools.
Useful .NET CLI command
For .NET 10:
dotnet package list --include-transitive --vulnerable
For older .NET SDK versions:
dotnet list package --include-transitive --vulnerable
Links & Resources
- Original Article (German) (opens in a new tab)
- Microsoft - Auditing Package Dependencies (opens in a new tab)
Coming next
Your Next Presentation Could Be a Git Repository - discover Slidev and learn how to create developer presentations with Markdown and Git.
TSJDEV Apps Podcast - Short Episodes. Big Developer Ideas.
Full Transcript
Your application builds successfully. All your tests pass. Everything looks perfect.
But what if one of your NuGet packages contains a known security vulnerability?
Welcome to the TSJDEV Apps Podcast! Short Episodes. Big Developer Ideas.
I’m Thomas Sebastian Jensen, and today we’re talking about keeping our .NET dependencies secure.
Modern applications rely on external packages.
They save development time, provide useful functionality, and help us avoid reinventing the wheel.
But dependencies can introduce security risks.
And sometimes the vulnerable package isn’t even one we’ve added ourselves.
It might be a transitive dependency, meaning a package required by another package.
Fortunately, the .NET CLI provides a simple way to investigate.
We can list packages with known vulnerabilities and include transitive dependencies in the analysis.
The output helps us identify affected packages, resolved versions, and the severity of reported vulnerabilities.
You might see classifications such as Low, Moderate, High, or Critical.
For further investigation, the results can also reference security advisories explaining the vulnerability.
But finding a vulnerability is only the first step.
Next, we need to determine whether an updated package version is available.
And before updating everything blindly, we should consider compatibility and the actual security impact.
My recommendation?
Make dependency auditing part of your regular development workflow.
Run checks before releases, integrate them into CI pipelines, and consider automated monitoring through tools like Dependabot.
Remember, passing unit tests doesn’t necessarily mean your dependencies are secure.
And speaking of developer workflows, what if we could manage not only our source code, but even our presentations through Git?
Next time, we’ll explore Slidev, a presentation tool that lets developers create interactive slides using Markdown and familiar development tools.
Stay curious, keep experimenting, and keep building!