{"id":"CVE-2020-36564","published":"2022-12-27T21:13:31Z","modified":"2025-04-11T16:26:19Z","title":"Improper input validation in github.com/justinas/nosurf","vendor":"github.com/justinas/nosurf","product":"github.com/justinas/nosurf","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00783,"percentile":0.56939,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/justinas/nosurf/pull/60","tags":[]},{"url":"https://github.com/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2020-0049","tags":[]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":11.39},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"github-com-justinas-nosurf","affectedVersions":[{"vendor":"github.com/justinas/nosurf","product":"github.com/justinas/nosurf","versions":["< 1.1.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-11T16:25:49.012598Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/justinas/nosurf","vulnerableRanges":["<1.1.1"],"patched":["1.1.1"],"from":["GHSA-5x84-q523-vvwr","GO-2020-0049"],"provenance":"source"}],"summary":{"text":"Improper input validation in the github.com/justinas/nosurf Go library, which provides CSRF protection: when the expected token passed to the validation logic is malformed, validation is silently disabled. An attacker with network access and no authentication or user interaction can submit any token and have it accepted as valid, though the impact falls on integrity rather than confidentiality or availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:09:50Z"},"euvd":{"id":"EUVD-2022-7521","exploited":false,"provenance":"source"}}