{"id":"GHSA-mv73-f69x-444p","revision":"eb20324890334cc3b501aeed6d8c3f2d","records":[{"revision":"eb20324890334cc3b501aeed6d8c3f2d","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-mv73-f69x-444p","aliases":["CVE-2023-45141","GO-2023-2116"],"title":"Go Fiber CSRF Token Validation Vulnerability","description":"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.\n\n## Vulnerability Details\n\nThe vulnerability is caused by improper validation and enforcement of CSRF tokens within the application. The following issues were identified:\n\n1. **Lack of Token Association**: The CSRF token was validated against tokens in storage but was not tied to the original requestor that generated it, allowing for token reuse.\n\n## Remediation\n\nTo remediate this vulnerability, it is recommended to take the following actions:\n\n1. **Update the Application**: Upgrade the application to a fixed version with a patch for the vulnerability.\n\n2. **Implement Proper CSRF Protection**: Review the updated documentation and ensure your application's CSRF protection mechanisms follow best practices.\n\n4. **Choose CSRF Protection Method**: Select the appropriate CSRF protection method based on your application's requirements, either the Double Submit Cookie method or the Synchronizer Token Pattern using sessions.\n\n5. **Security Testing**: Conduct a thorough security assessment, including penetration testing, to identify and address any other security vulnerabilities.\n\n## Defence-in-depth\n\nUsers should take additional security measures like captchas or Two-Factor Authentication (2FA) and set Session cookies with SameSite=Lax or SameSite=Strict, and the Secure and HttpOnly attributes.","state":0,"publishedAt":"2023-10-17T12:41:07+00:00","modifiedAt":"2026-09-10T03:50:03.9313713+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.50.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-mv73-f69x-444p","https://nvd.nist.gov/vuln/detail/CVE-2023-45141","https://github.com/gofiber/fiber/commit/8c3916dbf4ad2ed427d02c6eb63ae8b2fa8f019a","https://github.com/gofiber/fiber/commit/b50d91d58ecdff2a330bf07950244b6c4caf65b1","https://github.com/gofiber/fiber"],"sourceUrl":"https://github.com/advisories/GHSA-mv73-f69x-444p","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mv73-f69x-444p","identifiers":["GHSA-mv73-f69x-444p","CVE-2023-45141","GO-2023-2116"]},"retained":false,"historicalAffected":[]}],"coverage":[]}