CSRF Token Reuse Vulnerability in fiber
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Tampering
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-352.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gofiber | fiber | before 2.50.0 | 2.50.0 | Patch available | CNA |
| — | github.com/gofiber/fiber/v2 (Go) | before 2.50.0 | 2.50.0 | Patch available | GHSA-94w9-97p3-p368 |
- fiber Vendorgofiber Affected before 2.50.0 Fixed in 2.50.0 Patch available CNA
- github.com/gofiber/fiber/v2 (Go) Vendor— Affected before 2.50.0 Fixed in 2.50.0 Patch available GHSA-94w9-97p3-p368
Remediation
- Fix · CNA fiber (gofiber) Fixed in 2.50.0
- Fix · GHSA-94w9-97p3-p368 github.com/gofiber/fiber/v2 (Go) Fixed in 2.50.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-45128
- 2026-10-03 Alias added: GHSA-94w9-97p3-p368
References
Advisory 2
More gofiber Fiber vulnerabilities
- TI-2025-34555 Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder CVSS 4.0HIGH 8.7
- TI-2024-16578 Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials CVSS 3.1CRITICAL 9.8
- TI-2025-30446 Fiber panics when fiber.Ctx.BodyParser parses invalid range index CVSS 4.0HIGH 7.7
- TI-2026-23477 github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters CVSS 3.1MEDIUM 6.5
- TI-2026-20922 Fiber has a Denial of Service Vulnerability via Route Parameter Overflow CVSS 4.0MEDIUM 5.5
- TI-2026-30834 Fiber: XSS in AutoFormat Content Negotiation CVSS 4.0MEDIUM 5.3
Sources
- CVE-2023-45128 · CVE Program
- CVE-2023-45128 · NVD
- FIRST EPSS
- GHSA-94w9-97p3-p368 · GitHub Advisory Database · CC BY 4.0
- CVE-2023-45128 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences