Improper Input Validation Affecting github.com/justinas/nosurf package, versions <1.1.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMJUSTINASNOSURF-3121917
  • published16 Nov 2022
  • disclosed14 Apr 2021
  • credit@aeneasr

Introduced: 14 Apr 2021

CVE-2020-36564  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade github.com/justinas/nosurf to version 1.1.1 or higher.

Overview

github.com/justinas/nosurf is a HTTP package for Go that helps you prevent Cross-Site Request Forgery attacks.

Affected versions of this package are vulnerable to Improper Input Validation. 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.

CVSS Scores

version 3.1