# CVE-2026-30246: github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-28T22:28:14.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-35hp-hqmv-8qg8, GO-2026-5069
- Weaknesses: CWE-200, CWE-436, CWE-524
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gofiber fiber: >= v3.0.0-beta.2, < 3.1.0; up to 3.1.0
- github.com/gofiber/fiber/v3 (Go): before 3.2.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/gofiber/fiber/security/advisories/GHSA-35hp-hqmv-8qg8> (exploit, advisory, vendor-advisory, web)
- <https://github.com/gofiber/fiber/blob/main/middleware/cache/cache_test.go#L599-L621> (product, web)
- <https://github.com/gofiber/fiber/blob/main/middleware/cache/config.go#L90-L92> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30246> (advisory)
- <https://github.com/gofiber/fiber/commit/050ff1ff18511c1475b8ec627460216aaecddd4e> (fix, web)
- <https://github.com/gofiber/fiber/commit/9a0d12c07ed895b84c72987f9288b04137afe5de> (fix, web)
- <https://github.com/gofiber/fiber> (package)

## Sources

- CVE List: [CVE-2026-30246](https://www.cve.org/CVERecord?id=CVE-2026-30246), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-35hp-hqmv-8qg8](https://github.com/advisories/GHSA-35hp-hqmv-8qg8), CC-BY-4.0, modified 2026-07-24
- Go Vulnerability Database: [GO-2026-5069](https://pkg.go.dev/vuln/GO-2026-5069), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-30246](https://nvd.nist.gov/vuln/detail/CVE-2026-30246), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-30246 · Whole record: https://cve.day/CVE-2026-30246.json · Rebuilt by cve.day 2026-11-25T22:59:20.601Z
