blob: bbac1b00fc1300c46ebf7490b6393aceb9ba7bdf [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2020-0049",
"modified": "0001-01-01T00:00:00Z",
"published": "2021-04-14T20:04:52Z",
"aliases": [
"CVE-2020-36564",
"GHSA-5x84-q523-vvwr"
],
"summary": "Improper input validation in github.com/justinas/nosurf",
"details": "Due to improper validation of caller input, validation is silently disabled if the provided expected token is malformed, causing any user supplied token to be considered valid.",
"affected": [
{
"package": {
"name": "github.com/justinas/nosurf",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.1"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/justinas/nosurf",
"symbols": [
"CSRFHandler.ServeHTTP",
"VerifyToken",
"verifyToken"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://github.com/justinas/nosurf/pull/60"
},
{
"type": "FIX",
"url": "https://github.com/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314"
}
],
"credits": [
{
"name": "@aeneasr"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2020-0049",
"review_status": "REVIEWED"
}
}