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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (18th 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 IDSNYK-GOLANG-GITHUBCOMGOFIBERFIBERMIDDLEWARECSRF-5971511
  • 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/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 Base Scores

version 3.1