github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gofiber | fiber | v3.0.0-beta.2 to before 3.1.0 | 3.1.0 | Patch available | CNA |
| — | github.com/gofiber/fiber/v3 (Go) | before 3.2.0 | 3.2.0 | Patch available | GHSA-35hp-hqmv-8qg8 |
- fiber Vendorgofiber Affected v3.0.0-beta.2 to before 3.1.0 Fixed in 3.1.0 Patch available CNA
- github.com/gofiber/fiber/v3 (Go) Vendor— Affected before 3.2.0 Fixed in 3.2.0 Patch available GHSA-35hp-hqmv-8qg8
Remediation
- Fix · CNA fiber (gofiber) Fixed in 3.1.0
- Fix · GHSA-35hp-hqmv-8qg8 github.com/gofiber/fiber/v3 (Go) Fixed in 3.2.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-30246
- 2026-10-03 Alias added: GHSA-35hp-hqmv-8qg8
References
Other 5
- https://github.com/gofiber/fiber/blob/main/middleware/cache/cache_test.go#L599-L621
- https://github.com/gofiber/fiber/blob/main/middleware/cache/config.go#L90-L92
- https://github.com/gofiber/fiber/commit/050ff1ff18511c1475b8ec627460216aaecddd4e
- https://github.com/gofiber/fiber/commit/9a0d12c07ed895b84c72987f9288b04137afe5de
- https://github.com/gofiber/fiber
More gofiber Fiber vulnerabilities
- TI-2025-34555 Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder CVSS 4.0HIGH 8.7
- TI-2024-16578 Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials CVSS 3.1CRITICAL 9.8
- TI-2025-30446 Fiber panics when fiber.Ctx.BodyParser parses invalid range index CVSS 4.0HIGH 7.7
- TI-2026-20922 Fiber has a Denial of Service Vulnerability via Route Parameter Overflow CVSS 4.0MEDIUM 5.5
- TI-2026-30834 Fiber: XSS in AutoFormat Content Negotiation CVSS 4.0MEDIUM 5.3
- TI-2026-38670 Fiber: HSTS header never set in helmet middleware due to incorrect protocol check CVSS 3.1MEDIUM 4.8
Sources
- CVE-2026-30246 · CVE Program
- CVE-2026-30246 · NVD
- FIRST EPSS
- GHSA-35hp-hqmv-8qg8 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-30246 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences