What’s Vulnerable › Vulnerabilities
CVE-2020-36564: Improper input validation in github.com/justinas/nosurf
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-12-27 · updated 2026-06-17
- Weakness: CWE-20
Description
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 products
- justinas nosurf: before 1.1.1 — fixed in 1.1.1
How to fix
Upgrade to a fixed version: justinas nosurf 1.1.1. Check the vendor advisory for mitigations.
References
- https://github.com/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314
- https://github.com/justinas/nosurf/pull/60
- https://pkg.go.dev/vuln/GO-2020-0049
- https://github.com/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314
- https://github.com/justinas/nosurf/pull/60
- https://pkg.go.dev/vuln/GO-2020-0049
Get alerted when CVE-2020-36564 or the next vulnerability affects your stack