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

CVE-2026-30246: Fiber's cache middleware default key generator ignores query string, causing response mix-up across distinct query parameters

April 28, 2026 (updated May 8, 2026)

Fiber cache middleware’s default key generator uses only c.Path() and does not include the query string. As a result, requests like /?id=1 and /?id=2 can map to the same cache key and share the same cached response.

This can cause response mix-up (cache poisoning-like behavior) for endpoints where response content depends on query parameters.

References

  • github.com/advisories/GHSA-35hp-hqmv-8qg8
  • github.com/gofiber/fiber
  • github.com/gofiber/fiber/blob/main/middleware/cache/cache_test.go
  • github.com/gofiber/fiber/blob/main/middleware/cache/config.go
  • github.com/gofiber/fiber/commit/050ff1ff18511c1475b8ec627460216aaecddd4e
  • github.com/gofiber/fiber/commit/9a0d12c07ed895b84c72987f9288b04137afe5de
  • github.com/gofiber/fiber/security/advisories/GHSA-35hp-hqmv-8qg8
  • nvd.nist.gov/vuln/detail/CVE-2026-30246

Code Behaviors & Features

Detect and mitigate CVE-2026-30246 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.0

Fixed versions

  • 3.2.0

Solution

Upgrade to version 3.2.0 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-436: Interpretation Conflict
  • CWE-524: Use of Cache Containing Sensitive Information

Source file

go/github.com/gofiber/fiber/v3/CVE-2026-30246.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:19:43 +0000.