{"id":"GO-2020-0049","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.","aliases":["CVE-2020-36564","GHSA-5x84-q523-vvwr"],"modified":"2026-03-17T04:05:37.872422Z","published":"2021-04-14T20:04:52Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2020-0049"},"references":[{"type":"FIX","url":"https://github.com/justinas/nosurf/pull/60"},{"type":"FIX","url":"https://github.com/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314"}],"affected":[{"package":{"name":"github.com/justinas/nosurf","ecosystem":"Go","purl":"pkg:golang/github.com/justinas/nosurf"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}],"ecosystem_specific":{"imports":[{"symbols":["CSRFHandler.ServeHTTP","VerifyToken","verifyToken"],"path":"github.com/justinas/nosurf"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2020-0049.json"}}],"schema_version":"1.7.5","credits":[{"name":"@aeneasr"}]}