{"id":"CVE-2023-45128","published":"2023-10-16T20:45:07Z","modified":"2024-09-16T14:23:48Z","title":"CSRF Token Reuse Vulnerability in fiber","vendor":"gofiber","product":"fiber","tier":"tail","description":{"text":"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 inject arbitrary values and forge malicious requests on behalf of a user. This vulnerability can allow an attacker to inject arbitrary values without any authentication, or perform various malicious actions on behalf of an authenticated user, 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 issue 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 as defense in depth measures. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00448,"percentile":0.30835,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-352","name":"Cross-Site Request Forgery"},{"id":"CWE-565","name":"Reliance on Cookies without Validation and Integrity Checking"},{"id":"CWE-807","name":"Reliance on Untrusted Inputs in a Security Decision"}],"references":[{"url":"https://github.com/gofiber/fiber/security/advisories/GHSA-94w9-97p3-p368","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gofiber/fiber/commit/8c3916dbf4ad2ed427d02c6eb63ae8b2fa8f019a","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":6.17},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"gofiber","affectedVersions":[{"vendor":"gofiber","product":"fiber","versions":["< 2.50.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-09-16T14:23:34.651707Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gofiber/fiber/v2","vulnerableRanges":["<2.50.0"],"patched":["2.50.0"],"from":["GHSA-94w9-97p3-p368","GO-2023-2115"],"provenance":"source"}],"summary":{"text":"A CSRF token validation flaw exists in the gofiber fiber web framework, a Go web framework, where CSRF tokens are improperly validated and enforced within applications built on it. An attacker can use this to inject arbitrary values and forge requests that act on behalf of a user, and this can be done without authentication over the network with no user interaction required, while the forged actions against an authenticated user are constrained by the victim's session.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:37:36Z"},"euvd":{"id":"EUVD-2023-2708","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-20744","published":"2019-01-28","fixed":"2.43.0","kev":false},{"cve":"CVE-2023-41338","published":"2023-09-08","fixed":"2.49.2-0.20230906112033-b8c9ede6efa2","kev":false,"link":{"from":"CVE-2023-41338","to":"CVE-2023-45128","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.49.2-0.20230906112033-b8c9ede6efa2","toFixed":"2.50.0","daysApart":38}]}},{"cve":"CVE-2023-45128","published":"2023-10-16","fixed":"2.50.0","kev":false},{"cve":"CVE-2023-45141","published":"2023-10-16","fixed":"2.50.0","kev":false},{"cve":"CVE-2024-25124","published":"2024-02-21","fixed":"2.52.1","kev":false,"link":{"from":"CVE-2023-45128","to":"CVE-2024-25124","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gofiber/fiber/v2","fromFixed":"2.50.0","toFixed":"2.52.1","daysApart":128}]}},{"cve":"CVE-2026-119285","published":"2026-10-29","fixed":"2.52.3","kev":false}],"package":"Go:github.com/gofiber/fiber/v2"}}