Cross-Site Request Forgery (CSRF) Affecting github.com/gofiber/fiber/v2/middleware/csrf package, versions <2.50.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.06% (31st 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 Cross-Site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOFIBERFIBERV2MIDDLEWARECSRF-5971014
  • published17 Oct 2023
  • disclosed16 Oct 2023
  • creditUnknown

Introduced: 16 Oct 2023

CVE-2023-45141  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade github.com/gofiber/fiber/v2/middleware/csrf to version 2.50.0 or higher.

Overview

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to the improper validation and enforcement of CSRF tokens within the application. An attacker can obtain tokens and forge malicious requests on behalf of a user by exploiting this weakness. This can lead to unauthorised actions being taken on the user's behalf, potentially compromising the security and integrity of the application.

References

CVSS Scores

version 3.1