CVE-2024-38513 — Vulnerability in github.com/gofiber/fiber — CVE...
Session Middleware Token Injection Vulnerability
Summary
Advisory Timeline
- First published July 1, 2024 (833 days ago).
- Last revised September 10, 2026 — 800 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/gofiber/fiber@v2.52.5
go get github.com/gofiber/fiber/v2/middleware/session@v2.52.5
go get github.com/gofiber/fiber/v2@v2.52.5
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: go (3).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/gofiber/fiber | go | All versions | 2.52.5 |
| github.com/gofiber/fiber/v2/middleware/session | go | All versions | 2.52.5 |
| github.com/gofiber/fiber/v2 | go | All versions | 2.52.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-384
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2vWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-38513ADVISORY
- https://github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8WEB
- https://github.com/gofiber/fiber/commit/7926e5bf4da03e54f62d27d53229d35b264cba8eWEB
- https://github.com/gofiber/fiberPACKAGE
Frequently Asked Questions
- What is CVE-2024-38513?
- Session Middleware Token Injection Vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2024-38513?
- CVE-2024-38513 affects github.com/gofiber/fiber, github.com/gofiber/fiber/v2/middleware/session and github.com/gofiber/fiber/v2. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-38513 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-22199CRITICAL
Django Template Engine Vulnerable to XSS
- CVE-2023-45128CRITICAL
CSRF Token Reuse Vulnerability
- CVE-2024-25124CRITICAL
Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials
- CVE-2026-107806CRITICAL
Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite
- CVE-2026-68582CRITICAL
Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies