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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-352, CWE-565
- **Aliases:** GHSA-mv73-f69x-444p, GO-2023-2116
- **Published:** 2023-10-16T20:48:55.590Z
- **Modified:** 2026-09-10T03:50:03.931Z

## Who should check

- Projects that depend on Go package github.com/gofiber/fiber/v2 (\< 2.50.0)
- Anyone running gofiber fiber \< 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.

## Affected and fixed versions

- Go `github.com/gofiber/fiber/v2`: affected \< 2.50.0; fixed 2.50.0 (osv)
- gofiber fiber: \< 2.50.0 (cvelist)

## Mitigation

- Upgrade github.com/gofiber/fiber/v2 to 2.50.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-45141. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-45141.md
Affected: github.com/gofiber/fiber/v2 < 2.50.0
Fixed in: 2.50.0

Steps:
1. Search this machine and project for github.com/gofiber/fiber/v2 (Go), gofiber fiber: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-45141 being exploited?

There is no confirmed exploitation: CVE-2023-45141 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-45141?

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-45141?

github.com/gofiber/fiber/v2 \< 2.50.0.

### Is there a fix for CVE-2023-45141?

Yes. Fixed in 2.50.0. Upgrade github.com/gofiber/fiber/v2 to 2.50.0 or later.

### How do I check if I'm affected by CVE-2023-45141?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/gofiber/fiber/security/advisories/GHSA-mv73-f69x-444p>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-45141>
- patch: <https://github.com/gofiber/fiber/commit/8c3916dbf4ad2ed427d02c6eb63ae8b2fa8f019a>
- patch: <https://github.com/gofiber/fiber/commit/b50d91d58ecdff2a330bf07950244b6c4caf65b1>
- other: <https://github.com/gofiber/fiber>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-45141>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mv73-f69x-444p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-2116> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-45141> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-45141>
