Vulnerability · Published Oct 16, 2023 · Assigned by GitHub_M
CVE-2023-45141CSRF Token Validation Vulnerability in fiber
High 8.6
In plain English
A high-severity cross-site request forgery in fiber from gofiber. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/gofiber/fiber/v2 | 2.50.0 | GHSA-mv73-f69x-444p |
| Go | github.com/gofiber/fiber/v2 | 2.50.0 | GO-2023-2116 |
Affected products (as reported)
Weakness: CWE-352, CWE-565 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-mv73-f69x-444p x_refsource_CONFIRM