CVE-2020-36564 json
Improper input validation in github.com/justinas/nosurf
published 2021-04-14 5 y ago modified 2026-06-17 4 mo ago also GHSA-5x84-q523-vvwr , GO-2020-0049 , EUVD-2022-7521
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 56%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/justinas/nosurf 1.1.1
- github.com/justinas/nosurf github.com/justinas/nosurf 1.1.1
- github.com/justinas/nosurf@4d86df7 commit
- github.com/justinas/nosurf#60 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/justinas/nosurf | <1.1.1 |
1.1.1 |
Affected products
- github.com/justinas/nosurf github.com/justinas/nosurf
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/justinas/nosurf/pull/60
web, patch, third-party-advisory
-
github.com
/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314
web, patch, third-party-advisory
-
pkg.go.dev
/vuln/GO-2020-0049
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-36564
advisory
-
github.com
/justinas/nosurf
package
Sources
- CVE List CVE-2020-36564
- GitHub Advisory GHSA-5x84-q523-vvwr
- NVD CVE-2020-36564
- OSV GO-2020-0049
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.