{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*",
            "extracted_events": [
              {
                "introduced": "v3.0.0-beta.2"
              },
              {
                "fixed": "3.1.0"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "3.1.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "CPE_RANGE"
            ]
          },
          "events": [
            {
              "introduced": "9ba57651654b640c6859f624543e8ea51726d02b"
            },
            {
              "fixed": "3c24ebefe5009e88f9f9258b472e8021160179bf"
            }
          ],
          "repo": "https://github.com/gofiber/fiber",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-35hp-hqmv-8qg8"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-436"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30246.json"
  },
  "details": "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.",
  "id": "CVE-2026-30246",
  "modified": "2026-07-15T01:49:12.263779232Z",
  "published": "2026-05-05T12:40:19.813Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/gofiber/fiber/blob/main/middleware/cache/cache_test.go#L599-L621"
    },
    {
      "type": "WEB",
      "url": "https://github.com/gofiber/fiber/blob/main/middleware/cache/config.go#L90-L92"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/30xxx/CVE-2026-30246.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gofiber/fiber/security/advisories/GHSA-35hp-hqmv-8qg8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-30246"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters"
}