OSV is the Open Source Vulnerability Database provided by Google.
All the resulting datasets are available at ~/data/osv/ (in case you want to check it).
The raw dataset is not available in this repository. There are two means of getting the dataset:
- Set up a GitHub Token. First, copy the github template file:
cp config/github_template.json config/github.json - Change the placeholder to a personal github token.
{
"token": "TOKEN_VALUE"
}- Run the following bash script to collect the vulnerabilities from the different ecosystems (
GHSA,DWF,Go,Linux,Maven,NuGet,OSS-Fuzz,PyPI,RubyGems,crates.io,npm,HexPackagist):
source download.shThis script will retrieve and process all the data for the different ecosystems.
The dataset is available through Google Drive. Download our google drive mirror by running the following command:
gdown https://drive.google.com/uc?id=1_n08wgdyEFT-j53f_gzUpDbQBMMFDqKWFilter the entries with references to commits in source code hosting websites such as github, bitbucket, gitlab and git.
- Merge, plot stats and normalize OSV data:
source generate_data.sh- Filter OSV data by source code hosting website (
github,bitbucket,gitlaborgit):
source filter_data_by_source.sh github