-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backport] feat(go/vulndb): support the new OSV format (#165)
* chore(mod): tidy (#163) * refactor: use WalkDir * feat(go/vulndb): support a new OSV format
- Loading branch information
Showing
10 changed files
with
777 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
pkg/vulnsrc/govulndb/testdata/happy/vuln-list/go/GO-2020-0017.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"module": "github.com/dgrijalva/jwt-go/v4", | ||
"id": "GO-2020-0017", | ||
"published": "2021-04-14T12:00:00Z", | ||
"modified": "2021-04-14T12:00:00Z", | ||
"aliases": [ | ||
"CVE-2020-26160" | ||
], | ||
"details": "If a JWT contains an audience claim with an array of strings, rather\nthan a single string, and `MapClaims.VerifyAudience` is called with\n`req` set to `false`, then audience verification will be bypassed,\nallowing an invalid set of audiences to be provided.\n", | ||
"affected": [ | ||
{ | ||
"package": { | ||
"name": "github.com/dgrijalva/jwt-go", | ||
"ecosystem": "Go" | ||
}, | ||
"ranges": [ | ||
{ | ||
"type": "SEMVER", | ||
"events": [ | ||
{ | ||
"introduced": "0.0.0-20150717181359-44718f8a89b0" | ||
} | ||
] | ||
} | ||
], | ||
"database_specific": { | ||
"url": "https://go.googlesource.com/vulndb/+/refs/heads/master/reports/GO-2020-0017.yaml" | ||
}, | ||
"ecosystem_specific": { | ||
"symbols": [ | ||
"MapClaims.VerifyAudience" | ||
] | ||
} | ||
}, | ||
{ | ||
"package": { | ||
"name": "github.com/dgrijalva/jwt-go/v4", | ||
"ecosystem": "Go" | ||
}, | ||
"ranges": [ | ||
{ | ||
"type": "SEMVER", | ||
"events": [ | ||
{ | ||
"introduced": "0" | ||
}, | ||
{ | ||
"fixed": "4.0.0-preview1" | ||
} | ||
] | ||
} | ||
], | ||
"database_specific": { | ||
"url": "https://go.googlesource.com/vulndb/+/refs/heads/master/reports/GO-2020-0017.yaml" | ||
}, | ||
"ecosystem_specific": { | ||
"symbols": [ | ||
"MapClaims.VerifyAudience" | ||
] | ||
} | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"type": "FIX", | ||
"url": "https://github.com/dgrijalva/jwt-go/commit/ec0a89a131e3e8567adcb21254a5cd20a70ea4ab" | ||
}, | ||
{ | ||
"type": "WEB", | ||
"url": "https://github.com/dgrijalva/jwt-go/issues/422" | ||
} | ||
] | ||
} |
Oops, something went wrong.