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

    Threat Intelligence

    EPSS
    0.07% (32nd 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 ID SNYK-GOLANG-GITHUBCOMJUSTINASNOSURF-3121917
  • published 16 Nov 2022
  • disclosed 14 Apr 2021
  • credit @aeneasr

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
Expand this section

Snyk

8.6 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    High
Expand this section

NVD

7.5 high