CVE-2023-45141: CSRF Token Validation Vulnerability in fiber
Vulnerability summary
CVE-2023-45141 is a high (CVSS 8.8) Cross-Site Request Forgery (CSRF) vulnerability in gofiber fiber. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 22.3% of scored vulnerabilities.
Timeline
- 16-10-2023PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:LDiffers
- OSV · GoEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.27% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-352Cross-Site Request Forgery (CSRF)The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.
- CWE-565Reliance on Cookies without Validation and Integrity CheckingThe product relies on the existence or values of cookies when performing security-critical operations, but it does not properly ensure that the setting is valid for the associated user.
Affected systems
Github.com/gofiber/fiber1 product
- v2< 2.50.0
Gofiber1 product
- fiber< 2.50.0
2 vendors · 2 products
References
5 links- github.com/gofiber/fiber/security/advisories/GHSA-mv73-f69x-444pX Refsource CONFIRMWEBAdvisoryMitigationVendor Advisory
- github.com/gofiber/fiberPACKAGE