CVE-2023-45141Gofiber Fiber
High 8.8 No auth needed
Follow: this CVE · Gofiber · Gofiber Fiber We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 21
- Auth required
- No
- Published
- Oct 16, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Fiber.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gofiber/fiber/v2 |
< 2.50.0 |
2.50.0 |
go get github.com/gofiber/fiber/v2@v2.50.0 |
| Go | github.com/gofiber/fiber/v2 |
< 2.50.0 |
2.50.0 |
go get github.com/gofiber/fiber/v2@v2.50.0 |
Per OSV / GitHub Advisories (GHSA-mv73-f69x-444p, GO-2023-2116). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gofiber | fiber | < 2.50.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Vendor Advisory