# CVE-2020-36564: Improper input validation in github.com/justinas/nosurf

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2021-04-14T20:04:52.000Z
- Modified: 2026-06-17T03:15:44.917Z
- Also known as: GHSA-5x84-q523-vvwr, GO-2020-0049
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- github.com/justinas/nosurf: before 1.1.1
- github.com/justinas/nosurf (Go): before 1.1.1
- nosurf_project nosurf: before 1.1.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/justinas/nosurf/pull/60> (fix, patch, third-party-advisory, web)
- <https://github.com/justinas/nosurf/commit/4d86df7a4affa1fa50ab39fb09aac56c3ce9c314> (fix, patch, third-party-advisory, web)
- <https://pkg.go.dev/vuln/GO-2020-0049> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-36564> (advisory)
- <https://github.com/justinas/nosurf> (package)

## Sources

- CVE List: [CVE-2020-36564](https://www.cve.org/CVERecord?id=CVE-2020-36564), CVE Terms of Use, modified 2025-04-11
- GitHub Advisory Database: [GHSA-5x84-q523-vvwr](https://github.com/advisories/GHSA-5x84-q523-vvwr), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2020-0049](https://pkg.go.dev/vuln/GO-2020-0049), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2020-36564](https://nvd.nist.gov/vuln/detail/CVE-2020-36564), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-36564 · Whole record: https://cve.day/CVE-2020-36564.json · Rebuilt by cve.day 2026-11-25T22:57:58.777Z
