This is a free API that shows vulnerabilities in packages, it supports a few types like nuget and npm.
Example Nuget packages
Example Endpoint
The GET call needs the coordinates
of the package which is built up as follows
1 | model.Type = nuget |
Example coordinates pkg:nuget/log4net@1.2.10
The base URL is:
1 | var endPoint = $"https://ossindex.sonatype.org/api/v3/component-report/{coordinates}"; |
The complete URL would be
1 | https://ossindex.sonatype.org/api/v3/component-report/pkg:nuget/log4net@1.2.10 |
Example GET response
The version 2.0.14
has no vulnerabilities at the time of this post.
1 | { |
The version 1.2.10
has 1 known vulnerability at the time of this post.
1 | { |