Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gofiber/fiber
  4. ›
  5. CVE-2024-38513

CVE-2024-38513: Session Middleware Token Injection Vulnerability

July 1, 2024 (updated October 2, 2025)

A security vulnerability has been identified in the Fiber session middleware where a user can supply their own session_id value, leading to the creation of a session with that key.

References

  • github.com/advisories/GHSA-98j2-3j3p-fw2v
  • github.com/gofiber/fiber
  • github.com/gofiber/fiber/commit/66a881441b27322a331f1b526cf1eb6b3358a4d8
  • github.com/gofiber/fiber/commit/7926e5bf4da03e54f62d27d53229d35b264cba8e
  • github.com/gofiber/fiber/security/advisories/GHSA-98j2-3j3p-fw2v
  • nvd.nist.gov/vuln/detail/CVE-2024-38513

Code Behaviors & Features

Detect and mitigate CVE-2024-38513 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.52.5

Fixed versions

  • 2.52.5

Solution

Upgrade to version 2.52.5 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-384: Session Fixation

Source file

go/github.com/gofiber/fiber/CVE-2024-38513.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:27 +0000.