.NET libraries for Open Source Vulnerabilities (OSV) schema and API client.
dotnet add package OSV.Client
Create an instance of the OSVClient
using var client = new OSVClient();
// or
using var client = new OSVClient("https://api.osv.dev/v1/");
Use the client to make API calls
var query = new Query
{
Package = new Package {
Name = "jinja2",
Ecosystem = Ecosystem.PyPI
},
Version = "2.4.1",
}
var vulnerabilityList = await client.QueryAffectedAsync(query)
All packages in this repository are licensed under the MIT license.