Vulnerability Description
Fiber is a web framework for Go. In github.com/gofiber/fiber/v3 versions through 3.1.0, the default key generator in the cache middleware uses only the request path and does not include the query string. As a result, requests for the same path with different query parameters can share a cache key and receive the wrong cached response. This can cause response mix-up for query-dependent endpoints and may expose data intended for a different request. This issue is fixed after version 3.1.0.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Gofiber | Fiber | <= 3.1.0 |
Related Weaknesses (CWE)
References
- https://github.com/gofiber/fiber/blob/main/middleware/cache/cache_test.go#L599-LProduct
- https://github.com/gofiber/fiber/blob/main/middleware/cache/config.go#L90-L92Product
- https://github.com/gofiber/fiber/security/advisories/GHSA-35hp-hqmv-8qg8ExploitVendor Advisory
- https://github.com/gofiber/fiber/security/advisories/GHSA-35hp-hqmv-8qg8ExploitVendor Advisory
FAQ
What is CVE-2026-30246?
CVE-2026-30246 is a vulnerability with a CVSS score of 6.5 (MEDIUM). Fiber is a web framework for Go. In github.com/gofiber/fiber/v3 versions through 3.1.0, the default key generator in the cache middleware uses only the request path and does not include the query stri...
How severe is CVE-2026-30246?
CVE-2026-30246 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-30246?
Check the references section above for vendor advisories and patch information. Affected products include: Gofiber Fiber.