blob: d4f21180f342b0df4f9312672d83967e20242385 [file] [log] [blame]
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//
// Test representation of the vulndb repo.
// Modified times will be overwritten with time of CL
// submission. Published times will be overwritten if unset (zero).
-- data/osv/GO-1999-0001.json --
{
"schema_version": "1.3.1",
"id": "GO-1999-0001",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-1999-1111"
],
"summary": "A summary",
"details": "Some details",
"affected": [
{
"package": {
"name": "stdlib",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0"
},
{
"introduced": "1.2.0"
},
{
"fixed": "1.2.2"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "package",
"symbols": [
"Symbol"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://example.com/cl/123"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-1999-0001"
}
}
-- data/osv/GO-2000-0002.json --
{
"schema_version": "1.3.1",
"id": "GO-2000-0002",
"modified": "0001-01-01T00:00:00Z",
"published": "2000-01-01T00:00:00Z",
"aliases": [
"CVE-1999-2222"
],
"summary": "A summary",
"details": "Some details",
"affected": [
{
"package": {
"name": "example.com/module",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "example.com/module/package",
"symbols": [
"Symbol"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://example.com/cl/543"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2000-0002"
}
}
-- data/osv/GO-2000-0003.json --
{
"schema_version": "1.3.1",
"id": "GO-2000-0003",
"modified": "0001-01-01T00:00:00Z",
"published": "2000-01-01T00:00:00Z",
"aliases": [
"CVE-1999-3333",
"GHSA-xxxx-yyyy-zzzz"
],
"summary": "A summary",
"details": "Some details",
"affected": [
{
"package": {
"name": "example.com/module",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.0"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "example.com/module/package",
"symbols": [
"Symbol"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://example.com/cl/000"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2000-0003"
}
}